|
OpenTTD Source 20251213-master-g1091fa6071
|
Public Member Functions | |
| BaseStringMissingGlyphSearcher (FontSizes fontsizes) | |
| virtual std::optional< std::string_view > | NextString ()=0 |
| Get the next string to search through. | |
| virtual FontSize | DefaultSize ()=0 |
| Get the default (font) size of the string. | |
| virtual void | Reset ()=0 |
| Reset the search, i.e. | |
| FontLoadReason | GetLoadReason () override |
| std::set< char32_t > | GetRequiredGlyphs (FontSizes fontsizes) override |
| Get set of glyphs required for the current language. | |
Public Member Functions inherited from MissingGlyphSearcher | |
| MissingGlyphSearcher (FontSizes fontsizes) | |
| virtual | ~MissingGlyphSearcher ()=default |
| Make sure everything gets destructed right. | |
| FontSizes | FindMissingGlyphs () |
| Test if any glyphs are missing. | |
Additional Inherited Members | |
Data Fields inherited from MissingGlyphSearcher | |
| FontSizes | fontsizes |
| Font sizes to search for. | |
Definition at line 182 of file strings_func.h.
|
inline |
Definition at line 184 of file strings_func.h.
|
pure virtual |
Get the default (font) size of the string.
Implemented in LanguagePackGlyphSearcher, and TextfileWindow.
Referenced by GetRequiredGlyphs().
|
inlineoverridevirtual |
Implements MissingGlyphSearcher.
Definition at line 203 of file strings_func.h.
|
overridevirtual |
Get set of glyphs required for the current language.
| fontsizes | Font sizes to test. |
Implements MissingGlyphSearcher.
Definition at line 2296 of file strings.cpp.
References DefaultSize(), MissingGlyphSearcher::fontsizes, IsInsideMM(), IsTextDirectionChar(), NextString(), Reset(), and BaseBitSet< Timpl, Tvalue_type, Tstorage, Tmask >::Test().
|
pure virtual |
Get the next string to search through.
Implemented in LanguagePackGlyphSearcher, and TextfileWindow.
Referenced by GetRequiredGlyphs().
|
pure virtual |
Reset the search, i.e.
begin from the beginning again.
Implemented in LanguagePackGlyphSearcher, and TextfileWindow.
Referenced by GetRequiredGlyphs().