mirror of https://github.com/OpenTTD/OpenTTD
Change: Include font style in font name for Freetype.
parent
9976293c1e
commit
bae1897826
|
@ -42,7 +42,7 @@ public:
|
||||||
~FreeTypeFontCache();
|
~FreeTypeFontCache();
|
||||||
void ClearFontCache() override;
|
void ClearFontCache() override;
|
||||||
GlyphID MapCharToGlyph(WChar key) override;
|
GlyphID MapCharToGlyph(WChar key) override;
|
||||||
std::string GetFontName() override { return face->family_name; }
|
std::string GetFontName() override { return fmt::format("{}, {}", face->family_name, face->style_name); }
|
||||||
bool IsBuiltInFont() override { return false; }
|
bool IsBuiltInFont() override { return false; }
|
||||||
const void *GetOSHandle() override { return &face; }
|
const void *GetOSHandle() override { return &face; }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue