diff --git a/common/font/outline_font.cpp b/common/font/outline_font.cpp index fd477e1674..d11c590eba 100644 --- a/common/font/outline_font.cpp +++ b/common/font/outline_font.cpp @@ -259,6 +259,7 @@ VECTOR2I OUTLINE_FONT::getTextAsGlyphs( BOX2I* aBBox, std::vector()( k.face ) ^ hash()( k.codepoint ) + ^ hash()( k.scaler ) ^ hash()( k.fakeItalic ) ^ hash()( k.fakeBold ) ^ hash()( k.mirror ) ^ hash()( k.angle.AsTenthsOfADegree() ); } @@ -339,7 +341,7 @@ VECTOR2I OUTLINE_FONT::getTextAsGlyphsUnlocked( BOX2I* aBBox, if( aGlyphs ) { - GLYPH_CACHE_KEY key = { face, glyphInfo[i].codepoint, m_fakeItal, m_fakeBold, + GLYPH_CACHE_KEY key = { face, glyphInfo[i].codepoint, scaler, m_fakeItal, m_fakeBold, aMirror, aAngle }; GLYPH_DATA& glyphData = s_glyphCache[ key ];