diff options
Diffstat (limited to 'src/gui/text/qfontengine_qpf.cpp')
-rw-r--r-- | src/gui/text/qfontengine_qpf.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine_qpf.cpp b/src/gui/text/qfontengine_qpf.cpp index 951be06b433..daa2c66bb44 100644 --- a/src/gui/text/qfontengine_qpf.cpp +++ b/src/gui/text/qfontengine_qpf.cpp @@ -592,7 +592,10 @@ bool QFontEngineQPF::stringToCMap(const QChar *str, int len, QGlyphLayout *glyph *nglyphs = glyph_pos; glyphs->numGlyphs = glyph_pos; - recalcAdvances(glyphs, flags); + + if (!(flags & GlyphIndicesOnly)) + recalcAdvances(glyphs, flags); + return true; } |