Make the choice between the freetype and fontconfig listers entirely based on the defined setttings rather than platform
Originally committed to SVN as r4822.
This commit is contained in:
parent
da7f1ef96c
commit
7189dfb1a1
3 changed files with 5 additions and 15 deletions
|
@ -44,18 +44,14 @@
|
|||
#include <wx/tokenzr.h>
|
||||
#endif
|
||||
|
||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
||||
#ifdef WITH_FREETYPE2
|
||||
#include "font_file_lister_freetype.h"
|
||||
/// DOCME
|
||||
#define FontListerClass FreetypeFontFileLister
|
||||
#elif defined(WITH_FONTCONFIG)
|
||||
#include "font_file_lister_fontconfig.h"
|
||||
#define FontListerClass FontConfigFontFileLister
|
||||
#else
|
||||
#include "font_file_lister.h"
|
||||
#endif // WITH_FREETYPE2
|
||||
#else
|
||||
#include "font_file_lister_fontconfig.h"
|
||||
/// DOCME
|
||||
#define FontListerClass FontConfigFontFileLister
|
||||
#endif
|
||||
|
||||
#include "standard_paths.h"
|
||||
|
@ -236,5 +232,3 @@ void FontFileLister::LoadCache() {
|
|||
catch (...) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -44,11 +44,7 @@
|
|||
#include <wx/string.h>
|
||||
#endif
|
||||
|
||||
|
||||
////////////
|
||||
// Typedefs
|
||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
||||
|
||||
#ifdef WITH_FREETYPE2
|
||||
/// DOCME
|
||||
typedef struct FT_LibraryRec_ *FT_Library;
|
||||
#endif
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#if !defined(_WIN32) || defined(WITH_FONTCONFIG)
|
||||
#ifdef WITH_FONTCONFIG
|
||||
#include "font_file_lister_fontconfig.h"
|
||||
#include "charset_conv.h"
|
||||
|
||||
|
|
Loading…
Reference in a new issue