diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-02-13 17:53:41 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-02-13 20:09:14 +0100 |
commit | 63ed3f3575ade286782f56c249bcd2478e656adc (patch) | |
tree | 01beffaff75adcca5898ea0923abeb1bf27766e7 /src/fontcache.cpp | |
parent | f2294851e6b468ba49b108a26e75b98a63a7c05c (diff) | |
download | openttd-63ed3f3575ade286782f56c249bcd2478e656adc.tar.xz |
Codechange: Move Fontconfig-specific code to a seperate file.
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r-- | src/fontcache.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp index 6cc25154f..6a0b500d8 100644 --- a/src/fontcache.cpp +++ b/src/fontcache.cpp @@ -205,7 +205,6 @@ bool SpriteFontCache::GetDrawGlyphShadow() /* static */ FontCache *FontCache::caches[FS_END] = { new SpriteFontCache(FS_NORMAL), new SpriteFontCache(FS_SMALL), new SpriteFontCache(FS_LARGE), new SpriteFontCache(FS_MONO) }; -#if defined(WITH_FREETYPE) || defined(_WIN32) /** * Create a new TrueTypeFontCache. @@ -678,13 +677,8 @@ const void *FreeTypeFontCache::InternalGetFontTable(uint32 tag, size_t &length) return result; } -#elif defined(_WIN32) - - - #endif /* WITH_FREETYPE */ -#endif /* defined(WITH_FREETYPE) || defined(_WIN32) */ /** * (Re)initialize the freetype related things, i.e. load the non-sprite fonts. @@ -722,3 +716,12 @@ void UninitFreeType() _library = nullptr; #endif /* WITH_FREETYPE */ } + +#if !defined(_WIN32) && !defined(__APPLE__) && !defined(WITH_FONTCONFIG) + +#ifdef WITH_FREETYPE +FT_Error GetFontByFaceName(const char *font_name, FT_Face *face) { return FT_Err_Cannot_Open_Resource; } +#endif /* WITH_FREETYPE */ + +bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, MissingGlyphSearcher *callback) { return false; } +#endif /* !defined(_WIN32) && !defined(__APPLE__) && !defined(WITH_FONTCONFIG) */ |