natiny.font.get_letter_spacing
natiny.font.get_letter_spacing(font) -> spacing
Returns the extra gap added after every glyph, in drawing units.
Parameters
| Name | Type | Description |
|---|---|---|
font |
number |
Font handle from natiny.font.create |
Returns
| Type | Description |
|---|---|
number |
Drawing units added after each glyph; 0 by default and for an invalid handle |
Example
local spacing = natiny.font.get_letter_spacing(font)