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
PositionedTextGlyph
PositionedTextRender
TextStyle

Enums§

TextSpriteLayer

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.