diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-10-28 10:03:12 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-11-03 10:06:15 +0100 |
commit | 9fab0ede200960f0dbec1457757a6ba3214c3ce6 (patch) | |
tree | 506193cc33c06953a348b4872467a743e00f61cd /src/gui/text/qfontengine_qpf.cpp | |
parent | fa1856bcb2eff41dadf0900202dd43f44ddb2343 (diff) |
fix font height calculation on QWS
fontDef.pixelSize is a qreal now and we should round it after
multiplication to avoid an accuracy loss.
Reviewed-by: mae
Diffstat (limited to 'src/gui/text/qfontengine_qpf.cpp')
-rw-r--r-- | src/gui/text/qfontengine_qpf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine_qpf.cpp b/src/gui/text/qfontengine_qpf.cpp index 6ff0fbd554..94974fca5c 100644 --- a/src/gui/text/qfontengine_qpf.cpp +++ b/src/gui/text/qfontengine_qpf.cpp @@ -819,7 +819,7 @@ FT_Face QFontEngineQPF::lockFace() const FT_Face face = freetype->face; // ### not perfect - const int ysize = int(fontDef.pixelSize) << 6; + const int ysize = qRound(fontDef.pixelSize * qreal(64)); const int xsize = ysize; if (freetype->xsize != xsize || freetype->ysize != ysize) { |