natiny_font_has_glyph
bool natiny_font_has_glyph(NatinyFont font, uint32_t codepoint);
Answers whether this font can draw a code point, following its fallback chain.
Parameters
| Name | Type | Description |
|---|---|---|
font |
NatinyFont |
Font handle from natiny_font_create |
codepoint |
uint32_t |
Unicode code point |
Returns
| Type | Description |
|---|---|
bool |
true if the font or one of its fallbacks provides the glyph |
Example
bool can_draw = natiny_font_has_glyph(font, 0x4E2D);