Review Request 119777: Make KFontUtils::adaptFontSize be a bit more exact

Albert Astals Cid aacid at
Wed Aug 13 21:34:31 UTC 2014

This is an automatically generated e-mail. To reply, visit:

Review request for KDE Frameworks.

Repository: kguiaddons


Not all fonts are linear in drawn size against their point size, the old code assumes so and simply guesses the next font size taking into account the pointSize we drawn, the geometry we got and the geometry we want. The new code is a bit slower but will make sure that we get better pointSize results in non linear fonts.

This is a continuation from


  src/fonts/kfontutils.cpp 3a80039 



Blinken still works. Font sizes are similar.

I did code an autotest to try situations like 9 and 10 like David suggested, problem is that i can't upload that test since it depends on the font, etc so that would be extremely unstable.


Albert Astals Cid

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Kde-frameworks-devel mailing list