Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sketcher: Compensate for Coin not taking the dpi of the monitor into …
…account in font pixel setting ================================================================================================== Coin documentation indicates the size of a font is: SoSFFloat SoFont::size Size of font. Defaults to 10.0. For 2D rendered bitmap fonts (like for SoText2), this value is the height of a character in screen pixels. For 3D text, this value is the world-space coordinates height of a character in the current units setting (see documentation for SoUnits node). However, with hdpi monitors, the coin font labels do not respect the size passed in pixels: https://forum.freecadweb.org/viewtopic.php?f=3&t=54347&p=467610#p467610 https://forum.freecadweb.org/viewtopic.php?f=10&t=49972&start=40#p467471 Because I (abdullah) have 96 dpi logical, 82 dpi physical, and I see a 35px font setting for a "1" in a datum label as 34px, and I see kilsore and Elyas screenshots showing 41px and 61px in higher resolution monitors for the same configuration, I think that coin pixel size has to be corrected by the logical dpi of the monitor. The rationale is that: a) it obviously needs dpi correction, b) with physical dpi, the ratio of representation between kilsore and me is too far away. This means that the following correction does not have a documented basis, but appears necessary so that the Sketcher is usable in HDPI monitors.
- Loading branch information