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:
Thomas Goyne 2010-10-20 01:56:22 +00:00
parent da7f1ef96c
commit 7189dfb1a1
3 changed files with 5 additions and 15 deletions

View file

@ -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 (...) {
}
}

View file

@ -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

View file

@ -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"