Menu Font Size

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

fastbike
Newbie Member
Posts: 4
Joined: Tue Sep 04, 2018 11:40 am

Menu Font Size

Post by fastbike » Fri Jan 22, 2021 6:04 pm

Hi

I'm using version 3.25.2.0 running on Ubuntu 18.10.

My problem is that the menu fonts are extremely small. I can use QCAD on my laptop screen (13") but if I move the QCAD session to the 30" attached monitor the menu fonts are unreadable.

How do I change the font size ? Screen shots attached below

Thanks

David
Screenshot from 2021-01-23 06-00-47.png
Screen shot from 13" laptop screen
Screenshot from 2021-01-23 06-00-47.png (59.98 KiB) Viewed 16691 times
Screenshot from 2021-01-23 06-01-45.png
Screen shot from 30" monitor
Screenshot from 2021-01-23 06-01-45.png (60.43 KiB) Viewed 16691 times

fastbike
Newbie Member
Posts: 4
Joined: Tue Sep 04, 2018 11:40 am

Re: Menu Font Size

Post by fastbike » Fri Jan 22, 2021 6:29 pm

I've just been poking around the install directory and found the file opt/qcad-3.25.2-pro-linux-x86_64/qcad

This file contains the lines

Code: Select all

# breaks on some systems:
# disable if QCAD renders too large
QT_AUTO_SCREEN_SCALE_FACTOR=1 LD_LIBRARY_PATH="$DIR" "$binary" "$@"
If I comment it out, QCAD won't start. If I increase it to 2 there is no difference. If I set it to 0 then the menu font is fine but the toolbars are unusably small.

Am I looking in the right place to fix the problem ?

fastbike
Newbie Member
Posts: 4
Joined: Tue Sep 04, 2018 11:40 am

Re: Menu Font Size

Post by fastbike » Fri Jan 22, 2021 6:41 pm

and changing it to

Code: Select all

QT_SCALE_FACTOR=1.5 QT_AUTO_SCREEN_SCALE_FACTOR=1 LD_LIBRARY_PATH="$DIR" "$binary" "$@"
Makes the UI scale OK on the large external screen but the menu small (and largely non functional i.e. menu can be clicked but does not show the child items on some menus, others have huge amounts of blank space before sub items etc)

Am I on the right track ?

fastbike
Newbie Member
Posts: 4
Joined: Tue Sep 04, 2018 11:40 am

Re: Menu Font Size

Post by fastbike » Fri Jan 22, 2021 7:01 pm

Changing it to

Code: Select all

QT_FONT_DPI=96 QT_SCALE_FACTOR=2 LD_LIBRARY_PATH="$DIR" "$binary" "$@"
Fixes the UI problems (all the widgets appear at the right size), and the menu fonts can be read but only a few of the menu items contain sub items when clicked.

So still looking for a solution here.

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

Re: Menu Font Size

Post by petevick » Fri Jan 22, 2021 7:08 pm

You can change the menu font size at Edit>Application Preferences>Widgets>Menu Bar. You'll get a message saying you have to restart, but I've found that's not necessary.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

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

Re: Menu Font Size

Post by Husky » Fri Jan 22, 2021 7:21 pm

fastbike wrote:
Fri Jan 22, 2021 6:04 pm
I can use QCAD on my laptop screen (13") but if I move the QCAD session to the 30" attached monitor the menu fonts are unreadable.
What's about scaling the User Interface?

Husky-2021.01.22-03.png
Husky-2021.01.22-03.png (21.04 KiB) Viewed 16683 times

Used scale factor = 1

Husky-2021.01.22-02.png
Husky-2021.01.22-02.png (11.83 KiB) Viewed 16683 times

Used scale factor = 2

Husky-2021.01.22-01.png
Husky-2021.01.22-01.png (28.55 KiB) Viewed 16683 times
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..."

bob93
Junior Member
Posts: 16
Joined: Sat Jan 28, 2023 11:35 pm

Re: Menu Font Size

Post by bob93 » Wed Jun 21, 2023 3:53 am

petevick wrote:
Fri Jan 22, 2021 7:08 pm
You can change the menu font size at Edit>Application Preferences>Widgets>Menu Bar. You'll get a message saying you have to restart, but I've found that's not necessary.
Can you not do this for the tool matrix?
Also, can you change the font type for the menu bar / tool matrix?

Thanks

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

Re: Menu Font Size

Post by petevick » Wed Jun 21, 2023 6:30 am

bob93 wrote:
Wed Jun 21, 2023 3:53 am
petevick wrote:
Fri Jan 22, 2021 7:08 pm
You can change the menu font size at Edit>Application Preferences>Widgets>Menu Bar. You'll get a message saying you have to restart, but I've found that's not necessary.
Can you not do this for the tool matrix?
Also, can you change the font type for the menu bar / tool matrix?

Thanks
No, not using Qcad settings, but you can by using my Qcad Theme Designer - https://www.qcad.org/rsforum/viewtopic. ... 493#p40493 - enable Font Overrides, the menu bar and items are on Fonts 1 tab and Tool Matrix is on Fonts 2 tab.
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

bob93
Junior Member
Posts: 16
Joined: Sat Jan 28, 2023 11:35 pm

Re: Menu Font Size

Post by bob93 » Thu Oct 05, 2023 1:16 am

petevick wrote:
Wed Jun 21, 2023 6:30 am
No, not using Qcad settings, but you can by using my Qcad Theme Designer - https://www.qcad.org/rsforum/viewtopic. ... 493#p40493 - enable Font Overrides, the menu bar and items are on Fonts 1 tab and Tool Matrix is on Fonts 2 tab.
Hi, I tried theme designer today, enabled font override and checked BOLD everywhere in all tabs, but the tool matrix item names still remain the same, e.g. they are not bold. Are these item's font properties unchangable?
https://postimg.cc/wy8mmQTS

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

Re: Menu Font Size

Post by petevick » Thu Oct 05, 2023 6:52 am

bob93 wrote:
Thu Oct 05, 2023 1:16 am
Hi, I tried theme designer today, enabled font override and checked BOLD everywhere in all tabs, but the tool matrix item names still remain the same, e.g. they are not bold. Are these item's font properties unchangable?
https://postimg.cc/wy8mmQTS
Are you sure that you have the Bold check box ticked for Tool Matrix on the Fonts 2 tab.....
ksnip_20231005-064722.png
ksnip_20231005-064722.png (15.22 KiB) Viewed 10079 times
....as it definitely works.....
ksnip_20231005-064536.png
ksnip_20231005-064536.png (19.78 KiB) Viewed 10079 times
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

bob93
Junior Member
Posts: 16
Joined: Sat Jan 28, 2023 11:35 pm

Re: Menu Font Size

Post by bob93 » Thu Oct 05, 2023 11:36 pm

petevick wrote:
Thu Oct 05, 2023 6:52 am
Are you sure that you have the Bold check box ticked for Tool Matrix on the Fonts 2 tab.....
Absolutely. Notice that my tool matrix is set to list view. The category names such as Point did change to bold, but the item names such as Single Point PO didn't change to bold
Image

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

Re: Menu Font Size

Post by petevick » Fri Oct 06, 2023 6:37 am

bob93 wrote:
Thu Oct 05, 2023 11:36 pm
Absolutely. Notice that my tool matrix is set to list view. The category names such as Point did change to bold, but the item names such as Single Point PO didn't change to bold
I'm sorry, I misread your post, I was unable to find a way to change the items in the Tool Matrix.
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: Menu Font Size

Post by petevick » Mon Nov 13, 2023 8:37 pm

@bob93 - I've finally found out how to change the Tool matrix list view item text (they are actually tool buttons). You can add the following to blank line 436 in your stylesheet.css file (make sure no extra lines are added)....

Code: Select all

QTreeView#ToolMatrix QToolButton {font-size: 10pt; font-weight: Bold; font-style: Normal;
You can change the font height and style to suit yourself, font-weight can be Normal or Bold, font-style can be Normal or Italic. :)
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: Menu Font Size

Post by petevick » Wed Dec 13, 2023 10:12 am

This is now included in the latest version of Qcad Theme Designer - https://www.qcad.org/rsforum/viewtopic. ... =15#p42958
Pete Vickerstaff
Linux Mint 21.2 Cinnamon, Qcad Pro 3.29.6

bob93
Junior Member
Posts: 16
Joined: Sat Jan 28, 2023 11:35 pm

Re: Menu Font Size

Post by bob93 » Mon Feb 26, 2024 10:03 am

petevick wrote:
Mon Nov 13, 2023 8:37 pm
You can add the following to blank line 436 in your stylesheet.css file (make sure no extra lines are added)....

Code: Select all

QTreeView#ToolMatrix QToolButton {font-size: 10pt; font-weight: Bold; font-style: Normal;
You can change the font height and style to suit yourself, font-weight can be Normal or Bold, font-style can be Normal or Italic. :)
I only now see this, but I don't quite understand. Line 436 of my stylesheet.css file is not empty. This is what the file says from line 434:

Code: Select all

QScrollBar::sub-line:horizontal
{
    width: 18px;
    subcontrol-position: left;
    subcontrol-origin: margin;
}
Can you give me another reference to find the part where I must place the code you gave?

Post Reply

Return to “QCAD Troubleshooting and Problems”