Added in 1.9.5

$lineheight(font, size)

Returns the line height of the given font and size.

Parameters

Parameter Description
font Font to calculate.
size Font size to calculate.

Example

//echo -ag Lineheight for Consolas 10 is $lineheight(Consolas, 10)