Support for TrueType (.ttf) font files with Simple Directmedia Layer.
  • C 89.2%
  • C++ 5.7%
  • Perl 2%
  • Python 1.5%
  • CMake 1.4%
  • Other 0.1%
Find a file
Ivan Vecera a42434b8c9 Update solid fragment shader for procedural edge anti-aliasing
Add tex_coord input and use screen-space derivative-based distance
computation to produce smooth anti-aliased edges on solid fill
rectangles (underline and strikethrough). Recompile shader binaries
for SPIR-V, MSL and DXIL.
2026-06-23 08:42:18 -07:00
.github ci: fix genexports typo 2025-11-17 21:07:34 +01:00
build-scripts test-versioning.sh: check Xcode project MARKETING_VERSION 2026-05-15 09:23:17 -07:00
cmake Add CYGWIN support for DLL library check 2026-05-25 17:15:01 +03:00
docs Update README-migration.md 2026-04-26 07:33:18 -07:00
examples Update solid fragment shader for procedural edge anti-aliasing 2026-06-23 08:42:18 -07:00
external update vendored plutovg and plutosvg. 2026-05-31 23:10:52 +03:00
include/SDL3_ttf Add procedural edge AA support for solid fill in GPU text engine 2026-06-23 08:42:18 -07:00
mingw/pkg-support/cmake cmake updates for SDL3 2023-01-07 13:49:57 +01:00
src Add procedural edge AA support for solid fill in GPU text engine 2026-06-23 08:42:18 -07:00
VisualC Add OpenGL text engine and example (#630) 2026-06-17 18:03:04 -07:00
Xcode Create dSYM debug information for release builds in Xcode 2026-03-15 02:06:33 -07:00
.clang-format Added .editorconfig and .clang-format for SDL_ttf 2023-07-03 07:30:01 -07:00
.editorconfig Added .editorconfig and .clang-format for SDL_ttf 2023-07-03 07:30:01 -07:00
.gitignore dont .gitignore build-scripts/ 2025-12-20 14:40:10 +03:00
.gitmodules update vendored plutovg and plutosvg. 2026-05-31 23:10:52 +03:00
.wikiheaders-options .wikiheaders-options: Make sure we pick up the SDL_TTF_* version macros. 2025-07-24 12:50:03 -04:00
Android.mk Add OpenGL text engine and example (#630) 2026-06-17 18:03:04 -07:00
CHANGES.txt Added a patch note for TTF_GetFontWeight() 2025-03-31 10:57:13 -07:00
CMakeLists.txt Add OpenGL text engine and example (#630) 2026-06-17 18:03:04 -07:00
INSTALL.md Updated package documentation 2025-01-23 11:01:26 -08:00
LICENSE.txt Updated copyright for 2026 2026-01-01 11:28:09 -08:00
README.md Added support for OT-SVG fonts like Noto Color Emoji 2025-01-28 13:43:24 -08:00

SDL_ttf 3.0

This library is a wrapper around the FreeType and Harfbuzz libraries, allowing you to use TrueType fonts to render text in SDL applications.

The latest version of this library is available from GitHub: https://github.com/libsdl-org/SDL_ttf/releases

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

This library also uses the following libraries:

Enjoy!

Sam Lantinga (slouken@libsdl.org)