Codechange: Remove per font AA settings. (#12413)

OpenTTD will use the global AA font setting for all fonts from now on.
This commit is contained in:
ladysadie
2024-04-15 12:44:33 -07:00
committed by GitHub
parent a1b03ee69e
commit 727392e0b3
7 changed files with 20 additions and 79 deletions

View File

@@ -207,7 +207,6 @@ inline bool GetDrawGlyphShadow(FontSize size)
struct FontCacheSubSetting {
std::string font; ///< The name of the font, or path to the font.
uint size; ///< The (requested) size of the font.
bool aa; ///< Whether to do anti aliasing or not.
const void *os_handle = nullptr; ///< Optional native OS font info. Only valid during font search.
};
@@ -242,9 +241,8 @@ inline FontCacheSubSetting *GetFontCacheSubSetting(FontSize fs)
void InitFontCache(bool monospace);
void UninitFontCache();
bool HasAntialiasedFonts();
bool GetFontAAState(FontSize size, bool check_blitter = true);
void SetFont(FontSize fontsize, const std::string &font, uint size, bool aa);
bool GetFontAAState();
void SetFont(FontSize fontsize, const std::string &font, uint size);
#endif /* FONTCACHE_H */