Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

209.11. sdl3-ttf-3.2.2

Render TrueType and OpenType text into SDL3 surfaces and GPU text, shaped by HarfBuzz

3.2.2-1 · Zlib · 0.2 SBU · 565.8 KiB, 149 files · 42_graphics, 101 of 189 · ports/core/game-libs/sdl3-ttf

Homepage: https://github.com/libsdl-org/SDL_ttf

Why it is in KDOS. The comment above the 9 ports from sdl2-image to sdl3-ttf in script/phases/42_graphics/packages.d/game-libs.txt:

The SDL satellites for SDL 2 and SDL 3. There is no sdl2-config: a build that asks for it is given pkg-config sdl2, and an SDL 2 program runs on SDL 3 through sdl2-compat.

Depends on: cmake, ninja, pkgconf, perl, sdl3, freetype2, harfbuzz, plutosvg, plutovg.

Required by (1): freerdp.

Sources: sdl3-ttf-3.2.2.tar.gz (1.5 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install sdl3-ttf'

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DBUILD_SHARED_LIBS=ON \
	-DSDLTTF_VENDORED=OFF \
	-DSDLTTF_STRICT=ON \
	-DSDLTTF_HARFBUZZ=ON \
	-DSDLTTF_PLUTOSVG=ON \
	-DSDLTTF_SAMPLES=OFF \
	-DSDLTTF_INSTALL_MAN=ON
ninja
DESTDIR=$PKG ninja install

Libraries: libSDL3_ttf.so.

Directories: /usr/include/SDL3_ttf, /usr/lib/cmake/SDL3_ttf, /usr/share/licenses/SDL3_ttf, /usr/share/licenses/sdl3-ttf.