-
Notifications
You must be signed in to change notification settings - Fork 38
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
DPI scaling appears to be applied twice #24
Comments
Yeah, the problem with text scaling in Qt is that the font sizes are not
scaled linearly. We need to find a proper solution, so this is a valid
report.
2017-05-03 15:59 GMT+02:00 David Vo <[email protected]>:
… I have my text scaling factor set to 1.25 in GNOME. With QGnomePlatform,
text appears too large. This doesn't happen with qt5ct or QGtkStyle.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#24>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ADyw4Osq7X545YDE1ZBN9WPB3MkIZwkPks5r2IhNgaJpZM4NPcNK>
.
|
@MartinBriza For interested parties who might want to help contribute to this issue, could you give us a clue about what might be the problem here and how to fix it? |
The font scaling seems to be applied twice. |
Nice find. I'm guessing something else is already picking up the correct DPI settings, so then scaling the font sizes ourselves is the wrong thing to do. |
Qt 5.6 just introduce new HiDPI handling. It uses system-wide information for proper scaling: xrandr info, Xft.dpi (it uses by libxcursor that uses by Qt5 and currently it work wrong. I have idea how to fix it but have no time for it temporally). When you configure My current solution: enable scaling for Qt < 5.6 (Qt4 inclusive) and force 1.0 for Qt >= 5.6: |
Fixed in master. |
I have my text scaling factor set to 1.25 in GNOME. With QGnomePlatform, text appears too large. This doesn't happen with qt5ct or QGtkStyle.
Setting the DPI to 96 in KDE System Settings makes the text size consistent with GNOME, but then obviously the correct DPI won't be used in KDE…
The text was updated successfully, but these errors were encountered: