linespacing

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.

Syntax

   <linespacing>offset</linespacing>
Table 1. linespacing parameters
Parameter Type Description
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:

   <label sid="LABEL1">
      <size>
         <width>10</width>
         <height>5</height>
      </size>
      <value>
      </value>
      <linespacing>12</linespacing>
   </label>

Usage details

  1. Default: 0.
  2. 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.
  3. When using a positive offset, there is no limit to the size of the offset.
  4. For buttons and labels, the linespacing affects the text in the value option. For spacers, the linespacing affects the text in the label option.