natiny_font_set_fallback
void natiny_font_set_fallback(NatinyFont font, NatinyFont fallback);
Names another font to draw the code points this one has no outline for.
Parameters
| Name | Type | Description |
|---|---|---|
font |
NatinyFont |
Font handle from natiny_font_create |
fallback |
NatinyFont |
Font used for missing glyphs; 0 clears the fallback |
Example
NatinyFont latin = natiny_font_create(roboto, 24.0f);
NatinyFont emoji = natiny_font_create(noto_emoji, 24.0f);
natiny_font_set_fallback(latin, emoji);
natiny_render_text(latin, 10.0f, 10.0f, "Ready 馃殌");
Notes
- A fallback may have its own fallback. Resolution follows at most eight fonts.