natiny.font.get_fallback
natiny.font.get_fallback(font) -> fallback
Returns the font asked for the glyphs this one lacks.
Parameters
| Name | Type | Description |
|---|---|---|
font |
number |
Font handle from natiny.font.create |
Returns
| Type | Description |
|---|---|
number or nil |
Direct fallback font handle, or nil if none is active |
Example
local fallback = natiny.font.get_fallback(font)
Notes
- Returns
nilif the configured fallback was destroyed. - Returns only the direct fallback, not the final font in a fallback chain.