SDL_ttf
SDL_ttf copied to clipboard
Support for TrueType (.ttf) font files with Simple Directmedia Layer.
I have built the current SDL3_ttf 3.1.1 with SDL 3.2.4 and FreeType 2.13.3 using VS 2022 but my example does not show a text. But when I replace SDL3.dll 3.2.4...
The ability to enable or disable font features would be a useful addition. I'm making a text editor, and I want to support the user changing font features and variations...
I'm using sdl_ttf in a go binding lib, here's the binding src: TTF_RenderUTF8_Solid: https://github.com/veandco/go-sdl2/blob/4dff63cf3caad3d340b13c6663cd4219a034463f/ttf/sdl_ttf.go#L289 TTF_RenderUTF8_Blended_Wrapped: https://github.com/veandco/go-sdl2/blob/4dff63cf3caad3d340b13c6663cd4219a034463f/ttf/sdl_ttf.go#L327 when using TTF_RenderUTF8_Blended_Wrapped , my program has a very high chance that crashes with...
> If you have a string with "some latin chars ... some arabic chars.. " you probably have to use multiple fonts, but also change left-to-right and right-to-left rendering. >...
Sunforest — 1/24/25, 6:27 PM Looking at my notes the other blocker I appeared to have was that there doesn't appear to be a robust line breaking algorithm inside SDL_ttf....