|
OpenTTD Source 20251116-master-g21329071df
|
Helper for searching through the language pack. More...
Private Member Functions | |
| void | Reset () override |
| Reset the search, i.e. | |
| FontSize | DefaultSize () override |
| Get the default (font) size of the string. | |
| std::optional< std::string_view > | NextString () override |
| Get the next string to search through. | |
| bool | Monospace () override |
| Whether to search for a monospace font or not. | |
| void | SetFontNames (FontCacheSettings *settings, std::string_view font_name, const void *os_data) override |
| Set the right font names. | |
Private Attributes | |
| uint | i |
| Iterator for the primary language tables. | |
| uint | j |
| Iterator for the secondary language tables. | |
Additional Inherited Members | |
Public Member Functions inherited from MissingGlyphSearcher | |
| virtual | ~MissingGlyphSearcher ()=default |
| Make sure everything gets destructed right. | |
| bool | FindMissingGlyphs () |
| Check whether there are glyphs missing in the current language. | |
Helper for searching through the language pack.
Definition at line 2302 of file strings.cpp.
|
inlineoverrideprivatevirtual |
Get the default (font) size of the string.
Implements MissingGlyphSearcher.
Definition at line 2312 of file strings.cpp.
References FS_NORMAL.
|
inlineoverrideprivatevirtual |
Whether to search for a monospace font or not.
Implements MissingGlyphSearcher.
Definition at line 2332 of file strings.cpp.
|
inlineoverrideprivatevirtual |
Get the next string to search through.
Implements MissingGlyphSearcher.
Definition at line 2317 of file strings.cpp.
References i, j, LoadedLanguagePack::langtab_num, LoadedLanguagePack::langtab_start, and TEXT_TAB_END.
|
inlineoverrideprivatevirtual |
Reset the search, i.e.
begin from the beginning again.
Implements MissingGlyphSearcher.
Definition at line 2306 of file strings.cpp.
|
inlineoverrideprivatevirtual |
Set the right font names.
| settings | The settings to modify. |
| font_name | The new font name. |
| os_data | Opaque pointer to OS-specific data. |
Implements MissingGlyphSearcher.
Definition at line 2337 of file strings.cpp.
References settings.
|
private |
Iterator for the primary language tables.
Definition at line 2303 of file strings.cpp.
Referenced by NextString().
|
private |
Iterator for the secondary language tables.
Definition at line 2304 of file strings.cpp.
Referenced by NextString().