Add wxUSE_PRIVATE_FONTS and drop wxHAS_PRIVATE_FONTS

Handle this feature as all the other ones and provide a configure switch
and a setup.h option to disable it if necessary, as it may be desirable
to do it, especially under Linux, to avoid extra dependency on pangoft2
if this functionality is unnecessary.
This commit is contained in:
Vadim Zeitlin
2017-11-14 15:24:15 +01:00
parent a98c51e6bc
commit b040dab0ca
25 changed files with 213 additions and 95 deletions

View File

@@ -69,6 +69,8 @@ wxString wxNativeEncodingInfo::ToString() const
// Private Fonts
// ----------------------------------------------------------------------------
#if wxUSE_PRIVATE_FONTS
// On OSX one can provide private fonts simply by putting the font files in
// with the resources in your application bundle. So the API for adding fonts
// does not do anything except checking that the file you pass to it actually
@@ -95,6 +97,8 @@ bool wxFontBase::AddPrivateFont(const wxString& filename)
return true;
}
#endif // wxUSE_PRIVATE_FONTS
// ----------------------------------------------------------------------------
// helper functions
// ----------------------------------------------------------------------------