[SOLVED] [repairs needed] Fonts on a 4k screen

Use this forum to ask questions about how to do things in QCAD.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

dajo
Junior Member
Posts: 10
Joined: Fri Aug 23, 2013 4:02 pm

[SOLVED] [repairs needed] Fonts on a 4k screen

Post by dajo » Thu Oct 13, 2022 7:28 pm

I have generated .dfx files for years using a 27 inch 1920x1080 (I think) screen. Now I have changed to a 3840x2160 screen. Adjustments were necessary to get a good display, mainly these were in the Widgets menu. But overall the switch has been simple and the old files display well, so thank you for that. A problem remains, and I am hoping that there is a simple solution.

My question is: can I, and how do I, change the remaining text sizes? For example, the tab labels, the command text, the text in the layer list, and the text in the Application preferences menu.

Trisquel 10.0.1
QCad 3.27.8

dajo
Attachments
Screenshot at 2022-10-13 11-46-49.png
Screenshot at 2022-10-13 11-46-49.png (849.16 KiB) Viewed 4100 times
Last edited by dajo on Sun Oct 16, 2022 1:56 pm, edited 1 time in total.
dajo
Trisquel 10.0.1, QCad Pro 3.27.8

User avatar
ryancousins
Premier Member
Posts: 367
Joined: Thu Mar 19, 2020 3:47 am
Location: Michigan, USA

Re: Fonts on a 4k screen

Post by ryancousins » Thu Oct 13, 2022 7:49 pm

Do you know if there is a global "scaling" option in the display settings of your OS? I'm not sure what options your distro has but Windows automatically scales up to 150% for me when I set my resolution to 3840x2160 and this will increase the size of all UI elements, including text, across all of my applications. Beyond that I don't know if there is a simple way to increase fonts within QCAD besides those that have an explicit option within Application Preferences.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Fonts on a 4k screen

Post by Husky » Thu Oct 13, 2022 8:38 pm

Hi dajo,

dajo wrote:
Thu Oct 13, 2022 7:28 pm
My question is: can I, and how do I, change the remaining text sizes? For example, the tab labels, the command text, the text in the layer list, and the text in the Application preferences menu.
QCAD provides an overall scale for the User Interface - maybe that can already help you. You will find it below Menu/Edit/Application Preferences/General/User Interface.
Play with the settings to see what works best for you. Changes to the scale factor should be done in small steps like 1.1, 1,2 etc.. After changing the setting you have to restart QCAD.
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

dajo
Junior Member
Posts: 10
Joined: Fri Aug 23, 2013 4:02 pm

Re: Fonts on a 4k screen

Post by dajo » Thu Oct 13, 2022 11:38 pm

Thanks to both of you. I was afraid of getting this kind of reply: you have confirmed my findings. The User Interface setting does change things and makes the whole display bigger; but the quality of the drawing display goes down horribly. The size change to the texts I identified is relatively small. So the overall effect is negative. Fortunately, I have used QCad quite a lot, so I know my way around - and I can squint when required.

This screenshot is with the User Interface Scale Factor at 1.5. Notice that the cancel X in the tab is 1.5 big, but the text still needs at least half a squint. Now I see it, the quality of the drawing in the screenshot in this post is acceptable. On my 4k screen it is not nearly this good: the quality of the display shows the clunkiness of the drawing very well.

dajo
Attachments
Screenshot at 2022-10-13 16-26-46.png
Screenshot at 2022-10-13 16-26-46.png (739.06 KiB) Viewed 4075 times
dajo
Trisquel 10.0.1, QCad Pro 3.27.8

CVH
Premier Member
Posts: 3415
Joined: Wed Sep 27, 2017 4:17 pm

Re: Fonts on a 4k screen

Post by CVH » Fri Oct 14, 2022 6:33 am

dajo wrote:
Thu Oct 13, 2022 7:28 pm
My question is: can I, and how do I, change the remaining text sizes? For example, the tab labels, the command text, the text in the layer list, and the text in the Application preferences menu.
I can confirm that all the above are not influenced by the GUI displaying option.
And that the viewport pixel scale is affected what is needed to avoid very faint lines in high resolution.
What does Graphics View 'Use full resolution' do for you in that case?

ryancousins proposal affects all and also including the viewport pixel scale.

Maybe Themes can provide some relief.
But I am not sure if Pete <petevick> has include font size.

Some settings can be changed individually: Toolbar icons, Tool Matrix icons, CAD Toolbar icons, Status bar font & size, Menu Bar font size

I take that App.Prefs .. General .. User Interface should be split in 3 sections: Icons - Text - Viewport
And that all widgets should use these settings or use their individual settings.

Regards,
CVH

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Fonts on a 4k screen

Post by petevick » Fri Oct 14, 2022 6:54 am

CVH wrote:
Fri Oct 14, 2022 6:33 am
Maybe Themes can provide some relief.
But I am not sure if Pete <petevick> has include font size.
There are no font sizes set in any of my themes.

dajo, If you like I'll have a look and see if it's possible to control font heights with themes (it's possible that Qcad will just ignore them), if it is possible then I'll add them wherever I can, you'd then have to search/replace for those entries to try and get the results you're after. Looking at your screen shots, I'll base it on my Default Plus theme.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Fonts on a 4k screen

Post by petevick » Fri Oct 14, 2022 9:18 am

dajo, this is just a quick trial that 'should' be able to fix the font heights in the properties tabs, and any other shared widgets. Extract the Default Plus fonts folder to your themes folder, fire up Qcad and make this your default theme, close Qcad. All the font heights are grouped together near the top of the stylesheetcss file and are set to 8pt, Edit the stylesheet.css file and change 8pt to whatever you need, maybe 12 or higher. Save the file and restart Qcad.
If it works and there are any other widgets that need adjusting let me know.
Attachments
Default Plus fonts.zip
(32.86 KiB) Downloaded 198 times
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

dajo
Junior Member
Posts: 10
Joined: Fri Aug 23, 2013 4:02 pm

Re: Fonts on a 4k screen

Post by dajo » Fri Oct 14, 2022 7:16 pm

Hello Pete,

I changed 8pt to 24pt in six places (not the ::disabled entries), see the screenshots. You can see that there are other possibilities for re-sizing: tab titles, text in the command box....

My guess is that people will change to higher screen resolution as time goes on; control over these items will be useful.

Thank you for the effort,
dajo
Attachments
Screenshot at 2022-10-14 11-59-00.png
Screenshot at 2022-10-14 11-59-00.png (617.92 KiB) Viewed 3992 times
Screenshot at 2022-10-14 11-58-10.png
Screenshot at 2022-10-14 11-58-10.png (651.55 KiB) Viewed 3992 times
dajo
Trisquel 10.0.1, QCad Pro 3.27.8

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Fonts on a 4k screen

Post by petevick » Fri Oct 14, 2022 7:36 pm

Hi dajo,
Blimey, 24pt, that is a huge jump :shock:

I'll take a look at those other elements and see if they can be changed. :wink:
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Fonts on a 4k screen

Post by petevick » Sat Oct 15, 2022 7:05 am

dajo, Firstly, I've renamed the theme folder to Default Plus hi-res.

I've added a few more elements, but I've also added this......

Code: Select all

QWidget
{
    font-size: 12pt;
}
...this effectively changes 'all' the fonts in Qcad in one hit, but, for some reason, it does not change the status bar, nor can I change it using QT reference QStatusBar, I can change it's colour, but not it's font. Similarly, or fortunately, the menu font is not affected, that seems to have scaled ok anyway.

I've commented out the individual widget font settings, if you want to use these rather than QWidget, then remove /* and */ that encloses these settings, you can then either comment out the QWidget setting or delete it, the font section of the file would then look something like this......

Code: Select all

/*
QWidget
{
    font-size: 12pt;
}
*/

QLabel
{
    font-size: 12pt;
}

QLabel::disabled
{
    font-size: 12pt;
}

QLineEdit
{
    font-size: 12pt;
}

QLineEdit::disabled
{
    font-size: 12pt;
}

QComboBox
{
    font-size: 12pt;
}

QComboBox::disabled
{
     font-size: 12pt;
}

QComboBox:hover
{
    font-size: 12pt;
}

QToolButton
{
    font-size: 12pt;
}

QSpinBox
{
    font-size: 12pt;
}

QTabBar
{
    font-size: 12pt;
}

QTreeView
{
    font-size: 12pt;
}

RTextEdit
{
    font-size: 12pt;
}

RCommandLine
{
    font-size: 12pt;
}

QGroupBox
{
    font-size: 12pt;
}
If you remove the commenting from the individual settings and leave QWidget active the individual settings should override QWidget, although I've not tested that, it just occurred to me :lol:

Don't forget to change your theme to Default Plus hi-res.

Again, let me know if there are any other elements that need looking at.
Attachments
Default Plus hi-res.zip
(32.92 KiB) Downloaded 197 times
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Fonts on a 4k screen

Post by petevick » Sat Oct 15, 2022 9:38 am

petevick wrote:
Sat Oct 15, 2022 7:05 am
If you remove the commenting from the individual settings and leave QWidget active the individual settings should override QWidget, although I've not tested that, it just occurred to me :lol:
I can confirm that the overrides work :wink:
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Fonts on a 4k screen

Post by petevick » Sat Oct 15, 2022 2:57 pm

petevick wrote:
Sat Oct 15, 2022 7:05 am
...this effectively changes 'all' the fonts in Qcad in one hit, but, for some reason, it does not change the status bar, nor can I change it using QT reference QStatusBar, I can change it's colour, but not it's font. Similarly, or fortunately, the menu font is not affected, that seems to have scaled ok anyway.
Ok, so the reason is that the status bar font size is controlled by Qcad in Application Preferences / Widgets / Status Bar and Application Preferences / Widgets / Menu Bar, other font settings are in Application Preferences / Graphics View / Fonts, but if you need to change these you'll have to drop back to version 3.27.5 as they are all broken in 3.27.8, see https://qcad.org/bugtracker/index.php?d ... sk_id=2410 Versions .6 and .7 may also work.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

dajo
Junior Member
Posts: 10
Joined: Fri Aug 23, 2013 4:02 pm

Re: Fonts on a 4k screen

Post by dajo » Sat Oct 15, 2022 8:33 pm

I dropped back to 3.27.1 because I had not yet deleted it; it appears to be broken. Your stuff works, see the screenshots (7 should be 27); I did not try overriding the QWidget setting. 18-20pt works best for my setup. The ruler font I cannot change for the broken reason that you give. I see that the priority for FS#2410 is "very low'. From the point of view of a hi-res user that is disappointing; please change the priority if you can. Thank you very much for this help.
Attachments
Screenshot-qcad-3.7.1-hi-res-12pt.png
Screenshot-qcad-3.7.1-hi-res-12pt.png (636.9 KiB) Viewed 3902 times
Screenshot-qcad-3.7.1-hi-res-18pt.png
Screenshot-qcad-3.7.1-hi-res-18pt.png (673.91 KiB) Viewed 3902 times
dajo
Trisquel 10.0.1, QCad Pro 3.27.8

User avatar
petevick
Premier Member
Posts: 392
Joined: Tue May 19, 2020 9:34 am
Location: North Norfolk coast UK

Re: Fonts on a 4k screen

Post by petevick » Sat Oct 15, 2022 8:43 pm

dajo wrote:
Sat Oct 15, 2022 8:33 pm
I see that the priority for FS#2410 is "very low'. From the point of view of a hi-res user that is disappointing; please change the priority if you can.
It is disappointing, but there is nothing I can do to change the priority, that's up to Andrew.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

CVH
Premier Member
Posts: 3415
Joined: Wed Sep 27, 2017 4:17 pm

Re: Fonts on a 4k screen

Post by CVH » Sun Oct 16, 2022 8:30 am

There are 476 open tickets, all but one low by default. :wink:
Usually even so said low priority issues are handled in minutes to days. :P
That doesn't mean that a new update is released ...

Some get never fixed.
Some are fixed in the mean time but not closed.

Regards,
CVH

Post Reply

Return to “QCAD 'How Do I' Questions”