mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 02:34:11 +00:00
Disable fontconfig-specific code if CAIRO_HAS_WIN32_FONT is defined.
It doesn't seem to be really needed in this case and causes annoying WINDOWSTEMPDIR_FONTCONFIG_CACHE directories to be created.
This commit is contained in:
parent
bffe346bd7
commit
cad8798d1a
@ -37,12 +37,13 @@
|
|||||||
|
|
||||||
#include <cairo-features.h>
|
#include <cairo-features.h>
|
||||||
|
|
||||||
#ifdef CAIRO_HAS_FT_FONT
|
|
||||||
#include <fontconfig/fontconfig.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CAIRO_HAS_WIN32_FONT
|
#ifdef CAIRO_HAS_WIN32_FONT
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#undef CAIRO_HAS_FT_FONT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef CAIRO_HAS_FT_FONT
|
||||||
|
#include <fontconfig/fontconfig.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static lg::log_domain log_font("font");
|
static lg::log_domain log_font("font");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user