natiny.font.get_line_spacing
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
local factor = natiny.font.get_line_spacing(font)
Notes
- A valid font may also return
0if that factor was set explicitly.