Back to TPG

TPG.UI.LineHeight

C🏷️ Palette

Part of TPG namespace

TPG.UI.LineHeight(font)
View on GitHub|gamemode/config/sh_palette.lua:464-467
📋 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

NameTypeDescription
fontstringA font name already created by `TPG.UI.BuildFonts`.

Returns

TypeDescription
numberLine height in pixels.

Examples

No examples available.

Used In

No usages found in the codebase.