Skip to main content

Module text_render

Module text_render 

Source
Expand description

Text rendering helpers.

TTF/OTF fonts are preferred. The lookup order mirrors the engine use case: game-local fonts first, then engine-local fonts, then the compile-time embedded default font, then platform fonts. If no font can be loaded, a small ASCII bitmap fallback is used only to keep debug text visible.

Structs§

FontCache
TextStyle

Functions§

embedded_default_font_available
embedded_default_font_names
font_name_matches_embedded_default
render_text_image_basic
render_text_image_basic_rgba