diff --git a/src/fontdetection.cpp b/src/fontdetection.cpp index 6e9e78ae20..3064268636 100644 --- a/src/fontdetection.cpp +++ b/src/fontdetection.cpp @@ -9,6 +9,8 @@ /** @file fontdetection.cpp Detection of the right font. */ +#ifdef WITH_FREETYPE + #include "stdafx.h" #include "debug.h" #include "fontdetection.h" @@ -774,3 +776,5 @@ bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, i FT_Error GetFontByFaceName(const char *font_name, FT_Face *face) {return FT_Err_Cannot_Open_Resource;} bool SetFallbackFont(FreeTypeSettings *settings, const char *language_isocode, int winlangid, MissingGlyphSearcher *callback) { return false; } #endif /* WITH_FONTCONFIG */ + +#endif /* WITH_FREETYPE */ diff --git a/src/fontdetection.h b/src/fontdetection.h index 5023ea8dd8..edb961e6d3 100644 --- a/src/fontdetection.h +++ b/src/fontdetection.h @@ -12,9 +12,10 @@ #ifndef FONTDETECTION_H #define FONTDETECTION_H +#include "fontcache.h" + #ifdef WITH_FREETYPE -#include "fontcache.h" #include #include FT_FREETYPE_H