diff options
author | Jason Barron <jbarron@trolltech.com> | 2009-05-18 06:12:23 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-05-18 06:12:23 (GMT) |
commit | 5e42a45d47e6300f986681b84fb61e923d7788fb (patch) | |
tree | 47c583f49bb6e0cfac09761c662bbfbc69def3fd /src/gui/text | |
parent | c88983acaf7034ee1ecc1f02ab3426d1e924c0dd (diff) | |
download | Qt-5e42a45d47e6300f986681b84fb61e923d7788fb.zip Qt-5e42a45d47e6300f986681b84fb61e923d7788fb.tar.gz Qt-5e42a45d47e6300f986681b84fb61e923d7788fb.tar.bz2 |
Set the vertical advance of glyph metrics to zero.
The OpenVG paint engine uses this value as the escapement of the glyph
and setting this to the vertical advance results in the text being laid
out in a declining staircase fashion. All other font engines seem to
set the vertical advance to zero so do the same here as well.
Diffstat (limited to 'src/gui/text')
-rw-r--r-- | src/gui/text/qfontengine_s60.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine_s60.cpp b/src/gui/text/qfontengine_s60.cpp index 580291a..eec09f4 100644 --- a/src/gui/text/qfontengine_s60.cpp +++ b/src/gui/text/qfontengine_s60.cpp @@ -234,7 +234,7 @@ glyph_metrics_t QFontEngineS60::boundingBox_const(glyph_t glyph) const glyphBounds.Width(), glyphBounds.Height(), metrics.HorizAdvance(), - metrics.VertAdvance() + 0 ); return result; } |