Codechange: [Win32] Move Win32-specific font code to a seperate file.

This commit is contained in:
Michael Lutz
2021-02-13 17:34:22 +01:00
parent 5ad1640984
commit c6af8f16f6
9 changed files with 818 additions and 744 deletions

View File

@@ -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();