Require fontconfig >= 2.8 and change its guard macro name

FcConfigAppFontAddFile() that we use is only available since 2.8, so
check for at least this version of the library in configure.

Also change the macro guarding its use to the more semantically
appropriate "wxHAVE" rather than "wxUSE" and make it more precise by
adding "2_8_0" suffix to it.
This commit is contained in:
Vadim Zeitlin
2017-11-13 21:29:38 +01:00
parent ed655bfcde
commit 3158a46ce7
5 changed files with 8 additions and 8 deletions

View File

@@ -836,7 +836,7 @@
/*
* Use FontConfig library for private fonts support in wxFont.
*/
#define wxUSE_FONTCONFIG 0
#undef wxHAVE_FONTCONFIG_2_8_0
/*
* Use GTK print for printing under GTK+ 2.10+
*/