diff options
author | lordjaxom <lordjaxom> | 2004-12-14 20:05:40 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-12-14 20:05:40 +0000 |
commit | b8f29c674cc0ccca207123342c1344bbd0f13796 (patch) | |
tree | 2af468bf7acc6df510241c1090d7e6538b6b3cf1 /font.c | |
parent | 3b0999969632e2820b846ca8adcef6b346ff7441 (diff) | |
download | vdr-plugin-text2skin-b8f29c674cc0ccca207123342c1344bbd0f13796.tar.gz vdr-plugin-text2skin-b8f29c674cc0ccca207123342c1344bbd0f13796.tar.bz2 |
1.0-pre4v1.0-pre4
Diffstat (limited to 'font.c')
-rw-r--r-- | font.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |