natiny.font.get_line_height
natiny.font.get_line_height(font) -> line_height
Returns the vertical distance between consecutive baselines.
Parameters
| Name | Type | Description |
|---|---|---|
font |
number |
Font handle from natiny.font.create |
Returns
| Type | Description |
|---|---|
number |
Line height in drawing units, or 0 for an invalid handle |
Example
local lh = natiny.font.get_line_height(font)