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§
Enums§
Constants§
- TNM_
FONT_ SHADOW_ MODE_ FUCHI - TNM_
FONT_ SHADOW_ MODE_ FUCHI_ SHADOW - TNM_
FONT_ SHADOW_ MODE_ NONE - TNM_
FONT_ SHADOW_ MODE_ SHADOW
Functions§
- editbox_
cell_ width_ px - embedded_
default_ font_ available - embedded_
default_ font_ names - font_
name_ matches_ embedded_ default - font_
shadow_ mode_ flags - is_
hankaku - normalize_
font_ shadow_ mode - normalized_
font_ name - render_
text_ image_ basic - render_
text_ image_ basic_ rgba - text_
line_ metrics_ ab_ glyph - Line count and pitch of the layout [
render_text_ab_glyph_rgba] produces.