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
1 changed files with 5 additions and 4 deletions
|
@ -37,12 +37,13 @@
|
|||
|
||||
#include <cairo-features.h>
|
||||
|
||||
#ifdef CAIRO_HAS_FT_FONT
|
||||
#include <fontconfig/fontconfig.h>
|
||||
#endif
|
||||
|
||||
#ifdef CAIRO_HAS_WIN32_FONT
|
||||
#include <windows.h>
|
||||
#undef CAIRO_HAS_FT_FONT
|
||||
#endif
|
||||
|
||||
#ifdef CAIRO_HAS_FT_FONT
|
||||
#include <fontconfig/fontconfig.h>
|
||||
#endif
|
||||
|
||||
static lg::log_domain log_font("font");
|
||||
|
|
Loading…
Add table
Reference in a new issue