SDL_FontCache icon indicating copy to clipboard operation
SDL_FontCache copied to clipboard

Suggested feature on grimfang4/SDL_FontCache#5

Open kuna opened this issue 9 years ago • 2 comments

  • 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.

kuna avatar Dec 31 '15 04:12 kuna

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.

grimfang4 avatar Jan 01 '16 04:01 grimfang4

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.

kuna avatar Jan 02 '16 06:01 kuna