Changeset - r27446:b35fe2bd14f3
[Not reviewed]
master
0 1 0
Peter Nelson - 15 months ago 2023-05-26 18:33:09
peter1138@openttd.org
Change: Include font style in font name for Freetype.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/fontcache/freetypefontcache.cpp
Show inline comments
 
@@ -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; }
 
};
0 comments (0 inline, 0 general)