mirror of https://github.com/OpenTTD/OpenTTD.git
Change: Include font style in font name for Freetype.
This commit is contained in:
parent
3ae1a80576
commit
220b08b868
|
@ -185,10 +185,10 @@ char *CrashLog::LogConfiguration(char *buffer, const char *last) const
|
||||||
" Medium: %s\n"
|
" Medium: %s\n"
|
||||||
" Large: %s\n"
|
" Large: %s\n"
|
||||||
" Mono: %s\n\n",
|
" Mono: %s\n\n",
|
||||||
FontCache::Get(FS_SMALL)->GetFontName(),
|
FontCache::Get(FS_SMALL)->GetFontName().c_str(),
|
||||||
FontCache::Get(FS_NORMAL)->GetFontName(),
|
FontCache::Get(FS_NORMAL)->GetFontName().c_str(),
|
||||||
FontCache::Get(FS_LARGE)->GetFontName(),
|
FontCache::Get(FS_LARGE)->GetFontName().c_str(),
|
||||||
FontCache::Get(FS_MONO)->GetFontName()
|
FontCache::Get(FS_MONO)->GetFontName().c_str()
|
||||||
);
|
);
|
||||||
|
|
||||||
buffer += seprintf(buffer, last, "AI Configuration (local: %i) (current: %i):\n", (int)_local_company, (int)_current_company);
|
buffer += seprintf(buffer, last, "AI Configuration (local: %i) (current: %i):\n", (int)_local_company, (int)_current_company);
|
||||||
|
|
|
@ -41,7 +41,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; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue