Can I Increase the Text and Point Size of Restraints?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Can I Increase the Text and Point Size of Restraints?

Post by bejant »

chrisb wrote: Sun Jul 29, 2018 11:50 pm And all of your feature requests are implemented.
issue #1202 created a monster for a while though, until Refine Shape was added to Data Tab > Properties.


chrisb wrote: Sun Jul 29, 2018 11:50 pm I hope you could fix your driver issue.
An inexpensive graphics card fixed that (updating the driver for my on-board graphics didn't help).
axos88
Posts: 12
Joined: Mon Oct 07, 2019 5:05 pm

Re: Can I Increase the Text and Point Size of Restraints?

Post by axos88 »

Hi,

I'm facing the samme issue now on my MBPro, and cannot find the marker size preference in v0.19 on MacOS X. The font size setting doesn't seem to affect the sizes.


OS: macOS Mojave (10.14)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18403 (Git)
Build type: Release
Branch: master
Hash: 0717b4fc23ef1db70964c3977d25e2fe46a739d1
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United States (en_US)
Attachments
Screenshot 2019-10-09 11.29.37.png
Screenshot 2019-10-09 11.29.37.png (100.21 KiB) Viewed 1927 times
Screenshot 2019-10-09 11.27.19.png
Screenshot 2019-10-09 11.27.19.png (404.46 KiB) Viewed 1927 times
chrisb
Veteran
Posts: 53285
Joined: Tue Mar 17, 2015 9:14 am

Re: Can I Increase the Text and Point Size of Restraints?

Post by chrisb »

axos88 wrote: Wed Oct 09, 2019 8:29 am annot find the marker size preference in v0.19 on MacOS X.
Preferences->Display->MarkerSize.

The size of the dimensions and symbols cannot be changed.

Is there something special you want to show us with the preferences screenshot?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
axos88
Posts: 12
Joined: Mon Oct 07, 2019 5:05 pm

Re: Can I Increase the Text and Point Size of Restraints?

Post by axos88 »

Just that it's unreadably small, and I have pretty good eyes...
The text is about 1mm high on my MBP retina, and the constaints are even smaller.
It seems like the constraint text size can be changed (but it requires a freecad restart, although it doesn't say that it needs it) using Pref -> Sketcher -> Font size, changing from 17px to about 48px (!) makes it legible, but the icons and the numbers of the constraints stay the same.

I think Pref -> Display -> Marker size only changes the dots at the end of the lines, which is useful as well, but not what I am looking for right now.
Attachments
Screenshot 2019-10-09 21.37.45.png
Screenshot 2019-10-09 21.37.45.png (73.75 KiB) Viewed 1901 times
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Can I Increase the Text and Point Size of Restraints?

Post by bejant »

axos88 wrote: Wed Oct 09, 2019 6:40 pm but the icons and the numbers of the constraints stay the same.

I think Pref -> Display -> Marker size only changes the dots at the end of the lines, which is useful as well, but not what I am looking for right now.
Until you wrote that I was thinking that you wanted the vertices to be bigger. Now I understand what you want to enlarge:
20191009a.png
20191009a.png (49.43 KiB) Viewed 1888 times

Because screen displays evolve toward higher resolution, this would probably be a good feature request on the bug tracker.

Comments, anyone?
chrisb
Veteran
Posts: 53285
Joined: Tue Mar 17, 2015 9:14 am

Re: Can I Increase the Text and Point Size of Restraints?

Post by chrisb »

bejant wrote: Thu Oct 10, 2019 1:13 am Because screen displays evolve toward higher resolution, this would probably be a good feature request on the bug tracker.
Good idea. And it is desirable in both directions. Hiding the symbols is not always desirable, sometimes I would still like to see them, but in a less cluttering size.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Can I Increase the Text and Point Size of Restraints?

Post by bejant »

Submitted as issue #4160.
User avatar
Sinusvag
Posts: 5
Joined: Sat Jun 20, 2020 7:35 pm

Re: Can I Increase the Text and Point Size of Restraints?

Post by Sinusvag »

I agree: Being able to change the size of the graphics showing constraints onscreen would greatly benefit users with smaller 4K screens (like a workstation laptop).
anka
Posts: 23
Joined: Wed Oct 14, 2020 9:28 am

Re: Can I Increase the Text and Point Size of Restraints?

Post by anka »

Hi,
as for version 0.19, text-size can be adjusted in preferences, but it seems there's still no way to increase the size of the icons.
(If I missed something, I would be glad to know how it can be done)

After having a look at source, I use as a 'hard-coded' workaround for now.
All I did is change a single line in source :

File : .../src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
line : 3542 in method ViewProviderSketch::renderConstrIcon

replace line
QImage icon = Gui::BitmapFactory().pixmap(type.toLatin1()).toImage();
by
QImage icon = Gui::BitmapFactory().pixmap(type.toLatin1()).scaledToWidth(24).toImage();

As the icons are designed with a width of 16 pixel, best results are obtained by indicating widths like 24 (scale of 1.5) , 32 (double size) etc.

As I did not analyze the whole source, I cannot exclude side-effects.
For me it works ok.

anka


OS: macOS 11.0
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.23361 (Git)
Build type: Release
Branch: master
Hash: 07e2e8fcf355f7ed73b1e1efa1c5910c369d2be3
Python version: 3.9.0
Qt version: 5.15.1
Coin version: 4.0.0
OCC version: 7.5.0
Locale: English/United States (en_US)
chrisb
Veteran
Posts: 53285
Joined: Tue Mar 17, 2015 9:14 am

Re: Can I Increase the Text and Point Size of Restraints?

Post by chrisb »

Customization would be great. It doesn't really have to be included in Preferences - although it would be nice - a parameter in Tools->EditParameters->Preferences->Mod->Sketcher would do.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply