OpenTTD Source
20241121-master-g67a0fccfad
|
A searcher for missing glyphs. More...
#include <strings_func.h>
Public Member Functions | |
virtual | ~MissingGlyphSearcher ()=default |
Make sure everything gets destructed right. | |
virtual std::optional< std::string_view > | NextString ()=0 |
Get the next string to search through. More... | |
virtual FontSize | DefaultSize ()=0 |
Get the default (font) size of the string. More... | |
virtual void | Reset ()=0 |
Reset the search, i.e. More... | |
virtual bool | Monospace ()=0 |
Whether to search for a monospace font or not. More... | |
virtual void | SetFontNames (struct FontCacheSettings *settings, const char *font_name, const void *os_data=nullptr)=0 |
Set the right font names. More... | |
bool | FindMissingGlyphs () |
Check whether there are glyphs missing in the current language. More... | |
A searcher for missing glyphs.
Definition at line 116 of file strings_func.h.
|
pure virtual |
Get the default (font) size of the string.
Implemented in TextfileWindow, and LanguagePackGlyphSearcher.
Referenced by FindMissingGlyphs().
bool MissingGlyphSearcher::FindMissingGlyphs | ( | ) |
Check whether there are glyphs missing in the current language.
true
, else return false
. Definition at line 2166 of file strings.cpp.
References DefaultSize(), FontCache::Get(), InitFontCache(), Monospace(), NextString(), and Reset().
Referenced by CheckForMissingGlyphs(), and SetFallbackFont().
|
pure virtual |
Whether to search for a monospace font or not.
Implemented in TextfileWindow, and LanguagePackGlyphSearcher.
Referenced by FindMissingGlyphs(), and SetFallbackFont().
|
pure virtual |
Get the next string to search through.
Implemented in TextfileWindow, and LanguagePackGlyphSearcher.
Referenced by FindMissingGlyphs().
|
pure virtual |
Reset the search, i.e.
begin from the beginning again.
Implemented in TextfileWindow, and LanguagePackGlyphSearcher.
Referenced by FindMissingGlyphs().
|
pure virtual |
Set the right font names.
settings | The settings to modify. |
font_name | The new font name. |
os_data | Opaque pointer to OS-specific data. |
Implemented in TextfileWindow.
Referenced by SetFallbackFont().