Don't render glyph with FT with fetchMetricsOnly
Neither rendering with outline nor fetchMetricsOnly requires the rendering from FreeType so we don't need to render them or cache it. It should speed up recalcAdvances() quite a lot. Change-Id: I0f623cb4f79da2edf6e9c9634a2f22fb0c66823c Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>bb10
parent
90128ba877
commit
692064bcfd
|
|
@ -877,7 +877,7 @@ QFontEngineFT::Glyph *QFontEngineFT::loadGlyph(QGlyphSet *set, uint glyph,
|
|||
if (err != FT_Err_Ok)
|
||||
qWarning("load glyph failed err=%x face=%p, glyph=%d", err, face, glyph);
|
||||
|
||||
if ((!set || set->outline_drawing) && fetchMetricsOnly)
|
||||
if (!set || set->outline_drawing || fetchMetricsOnly)
|
||||
return 0;
|
||||
|
||||
FT_GlyphSlot slot = face->glyph;
|
||||
|
|
|
|||
Loading…
Reference in New Issue