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

@@ -118,7 +118,7 @@ private:
wxDECLARE_DYNAMIC_CLASS(wxFont);
};
#if wxUSE_FONTCONFIG
#ifdef wxHAVE_FONTCONFIG_2_8_0
#define wxHAS_PRIVATE_FONTS 1
#endif