The "vngen_set_lineheight" Function
#
SyntaxArgument | Type | Description |
---|---|---|
id | real/string | The ID of the entity to set lineheight (or keyword 'all' for all entities) |
type | integer/macro | Sets whether to set lineheight for text or labels |
multiplier | real | Sets the global lineheight as a multiplier of font size |
#
DescriptionVNgen uses a global lineheight multiplier to calculate the vertical space between lines of text (relative to the height of the current font, in pixels). This script changes the lineheight multiplier for all forms of text drawn by VNgen, or overrides it for a specific element, where a value of 1 equals no extra separation between lines.
Lineheight is set to 1.5 by default.
tip
If changes to lineheight aren't persisting, try running this script with vngen_script_execute_ext
!