diff options
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); }; |
