Fix glyph position issue with fallback fonts
Task-number: QTBUG-18933 Reviewed-by: Eskil (cherry picked from commit 18fcbf7ae41504324cd453ba9b9655f3e94f6495)
This commit is contained in:
parent
b2db259a32
commit
8c90fb22c4
@ -2317,6 +2317,9 @@ QList<QGlyphs> QTextLine::glyphs(int from, int length) const
|
|||||||
QGlyphLayout subLayout = glyphLayout.mid(start, end - start);
|
QGlyphLayout subLayout = glyphLayout.mid(start, end - start);
|
||||||
glyphLayoutHash.insertMulti(multiFontEngine->engine(which),
|
glyphLayoutHash.insertMulti(multiFontEngine->engine(which),
|
||||||
GlyphInfo(subLayout, pos, flags));
|
GlyphInfo(subLayout, pos, flags));
|
||||||
|
for (int i = 0; i < subLayout.numGlyphs; i++)
|
||||||
|
pos += QPointF(subLayout.advances_x[i].toReal(),
|
||||||
|
subLayout.advances_y[i].toReal());
|
||||||
|
|
||||||
start = end;
|
start = end;
|
||||||
which = e;
|
which = e;
|
||||||
|
Loading…
Reference in New Issue
Block a user