natiny.font.get_size
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
local size = natiny.font.get_size(font)