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:
@@ -794,14 +794,14 @@
|
||||
// notice that we can't use wxCHECK_VISUALC_VERSION() here as this file is
|
||||
// included from wx/platform.h before wxCHECK_VISUALC_VERSION() is defined
|
||||
#ifdef _MSC_VER
|
||||
# define wxUSE_GRAPHICS_CONTEXT 1
|
||||
#define wxUSE_GRAPHICS_CONTEXT 1
|
||||
#else
|
||||
// Disable support for other Windows compilers, enable it if your compiler
|
||||
// comes with new enough SDK or you installed the headers manually.
|
||||
//
|
||||
// Notice that this will be set by configure under non-Windows platforms
|
||||
// anyhow so the value there is not important.
|
||||
# define wxUSE_GRAPHICS_CONTEXT 0
|
||||
// Disable support for other Windows compilers, enable it if your compiler
|
||||
// comes with new enough SDK or you installed the headers manually.
|
||||
//
|
||||
// Notice that this will be set by configure under non-Windows platforms
|
||||
// anyhow so the value there is not important.
|
||||
#define wxUSE_GRAPHICS_CONTEXT 0
|
||||
#endif
|
||||
|
||||
// Enable wxGraphicsContext implementation using Cairo library.
|
||||
@@ -1141,6 +1141,16 @@
|
||||
// Recommended setting: 1 (but can be safely disabled if you don't use it)
|
||||
#define wxUSE_PREFERENCES_EDITOR 1
|
||||
|
||||
// wxFont::AddPrivateFont() allows to use fonts not installed on the system by
|
||||
// loading them from font files during run-time.
|
||||
//
|
||||
// Default is 1 except under Unix where it will be turned off by configure if
|
||||
// the required libraries are not available or not new enough.
|
||||
//
|
||||
// Recommended setting: 1 (but can be safely disabled if you don't use it and
|
||||
// want to avoid extra dependencies under Linux, for example).
|
||||
#define wxUSE_PRIVATE_FONTS 1
|
||||
|
||||
// wxRichToolTip is a customizable tooltip class which has more functionality
|
||||
// than the stock (but native, unlike this class) wxToolTip.
|
||||
//
|
||||
|
Reference in New Issue
Block a user