linespacingAdded by IBM on August 8, 2013 | Version 1 (Original)
|Adjusts the spacing between lines of text.
This sets on offset value, which will add to or subtract from the default spacing. For example, a value of 1 will add one pixel to the space between each line, while a value of -1 will remove one pixel from the space between each line.
Table 1. linespacing parameters
|offset||integer||The offset measured in pixels. This can be a positive or negative integer, or a value of 0 for no offset.|
Available in button, label, spacer
Example In the following example, the linespacing for a label is set to 12, which will create a large amount of space between lines:
- Default: 0.
- When using a negative offset, the offset cannot be larger than the size of the font (that is, the second line of text cannot be moved higher than the first line). For example, if the font was 12 pixels high, the offset could not be larger than -12.
- When using a positive offset, there is no limit to the size of the offset.
- For buttons and labels, the linespacing affects the text in the value option. For spacers, the linespacing affects the text in the label option.