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

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