natiny_font_get_line_spacing
float natiny_font_get_line_spacing(NatinyFont font);
Returns the line spacing multiplier set on this font.
Parameters
| Name | Type | Description |
|---|---|---|
font |
NatinyFont |
Font handle from natiny_font_create |
Returns
| Type | Description |
|---|---|
float |
Line-height multiplier; 1.0f by default, or 0.0f for an invalid handle |
Example
float factor = natiny_font_get_line_spacing(font);
Notes
- A valid font may also return
0.0fif that factor was set explicitly.