diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-05-13 08:26:30 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2010-05-13 08:26:30 +0000 |
commit | 2491b5131ab9b211ec0a75fb8dcae1d31ec8de88 (patch) | |
tree | 12a270e0bf5a0171ce308bdc0cf5bb7f44d8b308 /navit/font | |
parent | fa619939c87e5922cc28738f6b19f76379c3a924 (diff) | |
download | navit-2491b5131ab9b211ec0a75fb8dcae1d31ec8de88.tar.gz |
Add:font_freetype:Possibility to specify fonts with configure
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3246 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/font')
-rw-r--r-- | navit/font/freetype/font_freetype.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/navit/font/freetype/font_freetype.c b/navit/font/freetype/font_freetype.c index 4b277a76b..6add9ad48 100644 --- a/navit/font/freetype/font_freetype.c +++ b/navit/font/freetype/font_freetype.c @@ -437,7 +437,15 @@ font_freetype_font_new(struct graphics_priv *gr, } g_free(family_sav); #else +#ifdef FREETYPE_FONTS + { + char *fonts[]={FREETYPE_FONTS}; + name=g_strdup(fonts[flags ? 1:0]); + } +#else name=g_strdup_printf("%s/fonts/%s-%s.ttf",getenv("NAVIT_SHAREDIR"),"LiberationSans",flags ? "Bold":"Regular"); +#endif + #if USE_CACHING idstr=g_strdup_printf("%s/%d", name, 0); font->scaler.face_id=(FTC_FaceID)atom(idstr); |