Fix font height cache being incorrect for FreeType fonts.
This commit is contained in:
@@ -240,7 +240,13 @@ public:
|
|||||||
~FreeTypeFontCache();
|
~FreeTypeFontCache();
|
||||||
virtual SpriteID GetUnicodeGlyph(WChar key) { return this->parent->GetUnicodeGlyph(key); }
|
virtual SpriteID GetUnicodeGlyph(WChar key) { return this->parent->GetUnicodeGlyph(key); }
|
||||||
virtual void SetUnicodeGlyph(WChar key, SpriteID sprite) { this->parent->SetUnicodeGlyph(key, sprite); }
|
virtual void SetUnicodeGlyph(WChar key, SpriteID sprite) { this->parent->SetUnicodeGlyph(key, sprite); }
|
||||||
virtual void InitializeUnicodeGlyphMap() { this->parent->InitializeUnicodeGlyphMap(); }
|
|
||||||
|
virtual void InitializeUnicodeGlyphMap()
|
||||||
|
{
|
||||||
|
this->parent->InitializeUnicodeGlyphMap();
|
||||||
|
font_height_cache[this->fs] = this->GetHeight();
|
||||||
|
}
|
||||||
|
|
||||||
virtual void ClearFontCache();
|
virtual void ClearFontCache();
|
||||||
virtual const Sprite *GetGlyph(GlyphID key);
|
virtual const Sprite *GetGlyph(GlyphID key);
|
||||||
virtual uint GetGlyphWidth(GlyphID key);
|
virtual uint GetGlyphWidth(GlyphID key);
|
||||||
|
Reference in New Issue
Block a user