$lineheight » History » Version 4
Per Amundsen, 02/23/2023 04:27 PM
1 | 1 | Per Amundsen | _Added in 1.9.5_ |
---|---|---|---|
2 | |||
3 | *$lineheight(font, size)* |
||
4 | |||
5 | 3 | Per Amundsen | Returns the line height of the given font and size. |
6 | 1 | Per Amundsen | |
7 | *Parameters* |
||
8 | |||
9 | 4 | Per Amundsen | table(ktable). |
10 | |*Parameter*|*Description*| |
||
11 | | font | Font to calculate. | |
||
12 | | size | Font size to calculate. | |
||
13 | 1 | Per Amundsen | |
14 | *Example* |
||
15 | |||
16 | <pre> |
||
17 | //echo -ag Lineheight for Consolas 10 is $lineheight(Consolas, 10) |
||
18 | </pre> |