1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 01:19:11 +00:00

Change: Include font style in font name for Freetype.

This commit is contained in:
2023-05-26 19:33:09 +01:00
committed by PeterN
parent 9976293c1e
commit bae1897826

View File

@@ -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; }
};