diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-01-30 00:41:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-01-30 00:41:43 +0300 |
commit | 63ad011e9767c291608084008235cee0cc422d43 (patch) | |
tree | e456e0084ec25ccf0ab6fb35c0090416fb349b0f /source/blender/blenfont/intern/blf_lang.c | |
parent | 5f9ee2cbfe3770838482e7c8f37194f127e8a8c5 (diff) |
'scons blenderlite' failed because blf expected freetype
Diffstat (limited to 'source/blender/blenfont/intern/blf_lang.c')
-rw-r--r-- | source/blender/blenfont/intern/blf_lang.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenfont/intern/blf_lang.c b/source/blender/blenfont/intern/blf_lang.c index 527656f67b0..0aaf399cf58 100644 --- a/source/blender/blenfont/intern/blf_lang.c +++ b/source/blender/blenfont/intern/blf_lang.c @@ -42,7 +42,9 @@ #include "blf_internal_types.h" // XXX 2.50 Remove this later. +#ifdef WITH_FREETYPE2 #include "FTF_Api.h" +#endif static ListBase global_lang= { NULL, NULL }; static int global_tot_lang= 0; @@ -99,12 +101,14 @@ char *BLF_lang_find_code(short langid) void BLF_lang_set(int id) { +#ifdef WITH_FREETYPE2 LangBLF *lme; // XXX 2.50 Remove this later, with ftfont lme= blf_lang_find_by_id(id); if(lme) FTF_SetLanguage(lme->code); else FTF_SetLanguage("en_US"); +#endif } static void blf_lang_split(char *line, LangBLF* lme) |