SDL_FontCache
SDL_FontCache copied to clipboard
Suggested feature on grimfang4/SDL_FontCache#5
-
struct FC_Style
added (used for creating font structure - it's too much to give as arguments) -
FC_GetCodepoint16FromUTF8
added (simple function returns utf8 -> unicode) - use
FC_GetSurface
instead of TTF_RenderUTF8_Blended function - We don't use
set_color_for_all_caches
anymore (as border/textured font attribute makes it impossible & this will make performance better) -
FC_SetFallback
added. - Test cpp file was updated. you can check some new attributes easily.
Some cool stuff here! It'll take me a while to get around to working it in. SDL_FontCache is a C library, so I'd have to backport any C++. I also have to be careful with SDL_Surface pixel manipulations without an explicit pixel format.
Oh c language was an intended one, I didn't know that. Actually It'd be no problem if you compile these files in c language right now. anyway, I hope these features can help improve this library.