natiny.font.get_fallback

Lua
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

Lua
local fallback = natiny.font.get_fallback(font)

Notes

  • Returns nil if the configured fallback was destroyed.
  • Returns only the direct fallback, not the final font in a fallback chain.