mirror of https://github.com/OpenTTD/OpenTTD.git
Change: Include font style in font name for Freetype.
This commit is contained in:
parent
9976293c1e
commit
bae1897826
|
@ -42,7 +42,7 @@ public:
|
|||
~FreeTypeFontCache();
|
||||
void ClearFontCache() 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; }
|
||||
const void *GetOSHandle() override { return &face; }
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue