natiny.font.get_size

Lua
natiny.font.get_size(font) -> size

Returns the logical font size requested at creation.

Parameters

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

Returns

Type Description
number Font size in drawing units, or 0 for an invalid handle

Example

Lua
local size = natiny.font.get_size(font)