Part of TPG namespace
TPG.UI.LineHeight(font)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Height of one line in a font. Measures the sample string "Ag", which has both an ascender and a descender, so the result can never come back short the way a string with neither (e.g. all-caps or all-lowercase-no-descender text) could.
Parameters
| Name | Type | Description |
|---|---|---|
font | string | A font name already created by `TPG.UI.BuildFonts`. |
Returns
| Type | Description |
|---|---|
number | Line height in pixels. |
Examples
No examples available.
Used In
No usages found in the codebase.