Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Windows GUI: Use native font size from new API, not 120% of old API #8359
Not sure if this code is actually better in practice, but it's more "correct" than before, I think. There's no visual difference at 9pt and 96dpi, and probably minimal difference at higher DPIs. Maybe it affects users who customize their font sizes?
Code was copied from Qt library's dev branch's QWindowsFontDatabase, which (unlike the 5.x branch) uses
I commented out the lines about
If I divide by 96 instead of
maybe @spycrab can review?