SDL_ttf
SDL_ttf copied to clipboard
Support for TrueType (.ttf) font files with Simple Directmedia Layer.
Hi, I'm creating a terminal emulator in SDL2 and finding a lot of characters aren't present in a particular type-face (examples below). I'd like to be able to define fallback...
Changes for showfont: - Added argument [-windowsize w,h] to specify the windows size. - added argument [-utf8txtfile pathName] to support message from utf8 file. - removed [-utf8|-unicode], since the utf8...
Add functions to detect and configure Subpixel rendering mode TTF_GetSubpixelMode() TTF_SetLcdFilter() TTF_SetLcdFilterWeights() TTF_SetLcdGeometry() see #296
 Dear SDL_TTFs, I am running the LEM editor with SDL2 GUI on OpenBSD. LEM uses a LOCK symbol in it's modeline to indicate a read-only buffer. Unfortunately this does...
Currently, SDL_ttf uses the Harmony algorithm with default LCD geometry (uniform RGB subpixels in the horizontal direction) when doing subpixel rendering. According to [freetype docs](https://freetype.org/freetype2/docs/reference/ft2-lcd_rendering.html), > Harmony with default LCD...
I have a use case to draw UTF-8 encoded strings on screen with a type writer effect. A type writer effect gives users the impression that text is being typed...
There are 6 different reasons that could lead SDL to log "Couldn't find glyph" when an error occurs in Load_Glyph. It would be nice if each of those had a...
See these lines here: https://github.com/libsdl-org/SDL_ttf/blob/76e55783a549839ba96b8aafc6d55c8451f950ce/SDL_ttf.c#L3501-L3503 Was just testing out `TTF_RenderUTF8_LCD_Wrapped()` with a background colour of `SDL_Color backg = {0, 0, 0, 0}` and noticed that I was getting a returned...
The title says it all, adding functions that take a length instead of assuming strings are null-terminated would be really nice for a variety of use cases, from allowing easier...
I am proposing a feature that would give back to the user the correct dimensions of a surface with the supplied text of whatever format added. A cstring and UTF-8...