by making sure QGlyphLayout's numGlyphs member is properly initialized
if the string-to-glyphs lookup was successful
(tip: a surrogate pair produces a single glyph index).
Change-Id: I01953f3b6281d79e1a214bfab0424e796d94769a
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
}
*nglyphs = glyph_pos;
+ glyphs->numGlyphs = glyph_pos;
+
if (flags & GlyphIndicesOnly)
return true;
return false;
}
+ glyphs->numGlyphs = *nglyphs;
*nglyphs = getGlyphIndexes(str, len, glyphs, flags & RightToLeft);
if (!(flags & GlyphIndicesOnly))
glyphs->glyphs[i] = glyphIndices[i];
*nglyphs = len;
+ glyphs->numGlyphs = len;
if (!(flags & GlyphIndicesOnly))
recalcAdvances(glyphs, 0);