Skip to content
modkitv0.2

Font Rendering

← All examples18_font

Demonstrates the mk_font API with multiple font types: - Bitmap fonts (crisp at native size) - SDF fonts (scalable with effects) - NanoVG fonts (anti-aliased vector text) - Slug fonts (analytical curves, when the optional package is enabled) - Icon fonts (FontAwesome, Kenney) Includes ImGui controls for adjusting font parameters.

Font Rendering

Runs the WebAssembly build on this page. Click the canvas to give it keyboard focus.

Number
18
Tags
textuiimguislug
Requires
MODKIT_ENABLE_FONT
Source
examples/18_font/main.c

Build and run

./scripts/build-linux.sh release --target=18_font --run