From b8f29c674cc0ccca207123342c1344bbd0f13796 Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Tue, 14 Dec 2004 20:05:40 +0000 Subject: 1.0-pre4 --- font.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'font.c') diff --git a/font.c b/font.c index 7320f8a..ff26fea 100644 --- a/font.c +++ b/font.c @@ -1,5 +1,5 @@ /* - * $Id: font.c,v 1.5 2004/12/08 17:23:17 lordjaxom Exp $ + * $Id: font.c,v 1.6 2004/12/14 20:02:31 lordjaxom Exp $ */ #include "font.h" @@ -30,8 +30,9 @@ const cFont *cText2SkinFont::Load(const std::string &Path, const std::string &Fi const cFont *res = NULL; #ifdef HAVE_FREETYPE char *cachename; - asprintf(&cachename, "%s_%d", Filename.c_str(), Size); - if (mFontCache.Load(Path + "/" + Filename, cachename, Size)) + asprintf(&cachename, "%s_%d_%d", Filename.c_str(), Size, Setup.OSDLanguage); + Dprintf("trying now: %s %s\n", (Path + "/" + Filename).c_str(), cachename); + if (mFontCache.Load(Path + "/" + Filename, cachename, Size, Setup.OSDLanguage)) res = mFontCache.GetFont(cachename); else esyslog("ERROR: Text2Skin: Couldn't load font %s:%d", Filename.c_str(), Size); -- cgit v1.2.3