From 8b8389d975f1867d5e6a8be678678fa3206f4fda Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 15 Oct 2014 18:04:12 +0200 Subject: implemented cSDDisplayMenu::GetTextAreaFont() --- libcore/fontmanager.c | 6 ++++++ libcore/fontmanager.h | 1 + 2 files changed, 7 insertions(+) (limited to 'libcore') 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); }; -- cgit v1.2.3