1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 16:09:10 +00:00

(svn r23267) -Codechange: unify the font name setting of the font cache

This commit is contained in:
rubidium
2011-11-19 21:02:37 +00:00
parent 02bff061f8
commit 4e1c4f9079
3 changed files with 21 additions and 17 deletions

View File

@@ -1798,12 +1798,12 @@ class LanguagePackGlyphSearcher : public MissingGlyphSearcher {
this->j = 0;
}
FontSize DefaultSize()
/* virtual */ FontSize DefaultSize()
{
return FS_NORMAL;
}
const char *NextString()
/* virtual */ const char *NextString()
{
if (this->i >= 32) return NULL;
@@ -1817,6 +1817,13 @@ class LanguagePackGlyphSearcher : public MissingGlyphSearcher {
return ret;
}
/* virtual */ void SetFontNames(FreeTypeSettings *settings, const char *font_name)
{
strecpy(settings->small_font, font_name, lastof(settings->small_font));
strecpy(settings->medium_font, font_name, lastof(settings->medium_font));
strecpy(settings->large_font, font_name, lastof(settings->large_font));
}
};
/**