summaryrefslogtreecommitdiff
path: root/src/fontcache.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-02-13 17:34:22 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-13 20:09:14 +0100
commitc6af8f16f63d878371d1a823c12fbf21423505b5 (patch)
treebd0e33995d016b99d39187f2da04ccbee847504f /src/fontcache.h
parent5ad16409847a17534389054a1b7f5fb83703fb4d (diff)
downloadopenttd-c6af8f16f63d878371d1a823c12fbf21423505b5.tar.xz
Codechange: [Win32] Move Win32-specific font code to a seperate file.
Diffstat (limited to 'src/fontcache.h')
-rw-r--r--src/fontcache.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fontcache.h b/src/fontcache.h
index fac08a353..4b26af871 100644
--- a/src/fontcache.h
+++ b/src/fontcache.h
@@ -28,6 +28,9 @@ protected:
int ascender; ///< The ascender value of the font.
int descender; ///< The descender value of the font.
int units_per_em; ///< The units per EM value of the font.
+
+ static int GetDefaultFontHeight(FontSize fs);
+
public:
FontCache(FontSize fs);
virtual ~FontCache();
@@ -209,8 +212,6 @@ static inline bool GetDrawGlyphShadow(FontSize size)
return FontCache::Get(size)->GetDrawGlyphShadow();
}
-#if defined(WITH_FREETYPE) || defined(_WIN32)
-
/** Settings for a single freetype font. */
struct FreeTypeSubSetting {
char font[MAX_PATH]; ///< The name of the font, or path to the font.
@@ -230,8 +231,6 @@ struct FreeTypeSettings {
extern FreeTypeSettings _freetype;
-#endif /* defined(WITH_FREETYPE) || defined(_WIN32) */
-
void InitFreeType(bool monospace);
void UninitFreeType();