OpenTTD
|
Helper for searching through the language pack. More...
Private Member Functions | |
void | Reset () |
Reset the search, i.e. More... | |
FontSize | DefaultSize () |
Get the default (font) size of the string. More... | |
const char * | NextString () |
Get the next string to search through. More... | |
bool | Monospace () |
Whether to search for a monospace font or not. More... | |
void | SetFontNames (FreeTypeSettings *settings, const char *font_name) |
Set the right font names. More... | |
Private Attributes | |
uint | i |
Iterator for the primary language tables. | |
uint | j |
Iterator for the secondary language tables. | |
Additional Inherited Members | |
![]() | |
virtual | ~MissingGlyphSearcher () |
Make sure everything gets destructed right. More... | |
bool | FindMissingGlyphs (const char **str) |
Check whether there are glyphs missing in the current language. More... | |
Helper for searching through the language pack.
Definition at line 2031 of file strings.cpp.
|
inlineprivatevirtual |
Get the default (font) size of the string.
Implements MissingGlyphSearcher.
Definition at line 2041 of file strings.cpp.
References FS_NORMAL.
|
inlineprivatevirtual |
Whether to search for a monospace font or not.
Implements MissingGlyphSearcher.
Definition at line 2061 of file strings.cpp.
|
inlineprivatevirtual |
Get the next string to search through.
Implements MissingGlyphSearcher.
Definition at line 2046 of file strings.cpp.
References TEXT_TAB_END.
|
inlineprivatevirtual |
Reset the search, i.e.
begin from the beginning again.
Implements MissingGlyphSearcher.
Definition at line 2035 of file strings.cpp.
|
inlineprivatevirtual |
Set the right font names.
settings | The settings to modify. |
font_name | The new font name. |
Implements MissingGlyphSearcher.
Definition at line 2066 of file strings.cpp.
References FreeTypeSubSetting::font, FreeTypeSettings::large, lastof, FreeTypeSettings::medium, FreeTypeSettings::small, and strecpy().