SDL_FontCache
SDL_FontCache copied to clipboard
Suggested feature on grimfang4/SDL_FontCache#5
-
struct FC_Styleadded (used for creating font structure - it's too much to give as arguments) -
FC_GetCodepoint16FromUTF8added (simple function returns utf8 -> unicode) - use
FC_GetSurfaceinstead of TTF_RenderUTF8_Blended function - We don't use
set_color_for_all_cachesanymore (as border/textured font attribute makes it impossible & this will make performance better) -
FC_SetFallbackadded. - 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.