natiny.font.get_line_spacing

Lua
natiny.font.get_line_spacing(font) -> factor

Returns the line spacing multiplier set on this font.

Parameters

Name Type Description
font number Font handle from natiny.font.create

Returns

Type Description
number Line-height multiplier; 1 by default, or 0 for an invalid handle

Example

Lua
local factor = natiny.font.get_line_spacing(font)

Notes

  • A valid font may also return 0 if that factor was set explicitly.