Blame SOURCES/qt-everywhere-opensource-src-4.8.7-revert-font-cache-fix.patch

089f94
diff --git a/src/gui/text/qfontengine_ft.cpp b/src/gui/text/qfontengine_ft.cpp
089f94
index d937f38d..2b996440 100644
089f94
--- a/src/gui/text/qfontengine_ft.cpp
089f94
+++ b/src/gui/text/qfontengine_ft.cpp
089f94
@@ -1603,9 +1603,7 @@ void QFontEngineFT::recalcAdvances(QGlyphLayout *glyphs, QTextEngine::ShaperFlag
089f94
                    (flags & HB_ShaperFlag_UseDesignMetrics)) && FT_IS_SCALABLE(freetype->face);
089f94
     for (int i = 0; i < glyphs->numGlyphs; i++) {
089f94
         Glyph *g = defaultGlyphSet.getGlyph(glyphs->glyphs[i]);
089f94
-        // Since we are passing Format_None to loadGlyph, use same default format logic as loadGlyph
089f94
-        GlyphFormat acceptableFormat = (defaultFormat != Format_None) ? defaultFormat : Format_Mono;
089f94
-        if (g && g->format == acceptableFormat) {
089f94
+        if (g) {
089f94
             glyphs->advances_x[i] = design ? QFixed::fromFixed(g->linearAdvance) : QFixed(g->advance);
089f94
         } else {
089f94
             if (!face)