-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fonts in generated instruction depend on system DPI setting #292
Comments
Thank you for reporting this behaviour. Indeed, there is more to be done to make the LPub3D generated content completely autonomous from the system DPI scaling as I have indicated in my last #267 comment. Cheers, |
Corrected. Going back to #267...
However, this is not enough...
Qt uses the DPI settings in several other places to determine the size metrics (e.g. in layouts, to determine spacing around items and the like). Consequently, I have decided to force Qt to ignore completely the OS DPI settings and default to 96 fake-DPIs everywhere by doing:
before instantiating the QApplication.
Consequently, I rolled back setting the style rect size using the 'dpiRatio()' implemented in #267. Do not hesitate if you encounter any unexpected behaviour caused by this correction. Here is a shot of the UI at 175% scale on Windows. ...and at 100% Cheers, |
Sorry, I could not verify it is working :/ Should I enable something? |
I imagine there must be settings other than 'Scale and Layout' contributing to this behaviour. On my Windows 10 environment, the behaviour is as illustrated above. For me, there is no change in the annotation text font at scale above 100% so I'm not sure what else to look at. Cheers, |
Could you please tell if the file you used to get the screenshots above had
line? And if not, what is your default setting? Maybe those are deduced differently on my machine and on yours |
I used this model file for the shots above. It did not have the Cheers, |
I used the default setting - 150 DPI - just as you show in the shot. Cheers, |
Subject
Although #267 is fixed, LPub output still depends on system DPI setting. For instance, the first page was generated with 100% scaling
and the second one was generated with 175% scaling
LPub is a kind of compiler, its output should only depend on mpd source file (and LPub configuration files), not on system scaling setting, which is supposed to affect only UI elements
Environment
LPub 2.3.12 under Windows 10
Workaround
Right now I switch scaling to 100%, generate PDF with LPub, and look through it while fixing the instruction in LPub with scaling switched back to 175% (otherwise the interface elements are too small for me to read). This workflow is rather slow.
It is also possible to manually set the step number font settings to counter the scaling change.
The text was updated successfully, but these errors were encountered: