diff options
author | louis <louis.braun@gmx.de> | 2014-10-15 18:04:12 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-10-15 18:04:12 +0200 |
commit | 8b8389d975f1867d5e6a8be678678fa3206f4fda (patch) | |
tree | 75c62b726167c2d8659bf67203f4099ca100c99d /libcore | |
parent | 2e4a9b86ed6491e85d7e032790172fe2433cc19c (diff) | |
download | vdr-plugin-skindesigner-8b8389d975f1867d5e6a8be678678fa3206f4fda.tar.gz vdr-plugin-skindesigner-8b8389d975f1867d5e6a8be678678fa3206f4fda.tar.bz2 |
implemented cSDDisplayMenu::GetTextAreaFont()
Diffstat (limited to 'libcore')
-rw-r--r-- | libcore/fontmanager.c | 6 | ||||
-rw-r--r-- | libcore/fontmanager.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libcore/fontmanager.c b/libcore/fontmanager.c index 1dcba44..1f45af7 100644 --- a/libcore/fontmanager.c +++ b/libcore/fontmanager.c @@ -108,6 +108,12 @@ cFont *cFontManager::Font(string fontName, int fontSize) { return font; } +cFont *cFontManager::FontUncached(string fontName, int fontSize) { + cMutexLock MutexLock(&mutex); + cFont *font = CreateFont(fontName, fontSize); + return font; +} + /******************************************************************************** * Private Functions ********************************************************************************/ diff --git a/libcore/fontmanager.h b/libcore/fontmanager.h index 7067dfc..bfabb5c 100644 --- a/libcore/fontmanager.h +++ b/libcore/fontmanager.h @@ -28,6 +28,7 @@ class cFontManager { int Width(string fontName, int fontSize, const char *text); int Height(string fontName, int fontSize); cFont *Font(string fontName, int fontSize); + cFont *FontUncached(string fontName, int fontSize); void Debug(void); void ListAvailableFonts(void); }; |