Member attributes: RowDistance
This attribute configures the metrics of the font represented by a font resource member.
Syntax
unsigned‑integer
Discussion
The attribute RowDistance determines the distance between two consecutive text rows in a multi-line text block displayed with the TrueType font as specified in the attribute FontName of a font resource member. The distance is expressed in pixel and must be an unsigned integer literal. If this attribute is empty or it is configured with the value 0 (zero), the distance will be calculated automatically as sum of the font metrics ascent + descent + leading. The following image demonstrates the described relation:
With the attribute RowDistance you can override the value resulting from the font metrics creating fonts with larger or even smaller distance between their text rows. From technical point of view, the configuration of the attribute RowDistance affects the resulting value of the metric leading = RowDistance - ascent - descent. The size of the glyphs is not affected. See also the attribute Height.
Modify the attribute
To inspect or modify the value of a RowDistance attribute, select first the affected font resource member. Thereupon, the attribute is listed in the middle area of Inspector:
Localization
The attribute RowDistance can be localized allowing the creation of font resource members optimized to display multilingual text. For this purpose expand the attribute by clicking on the small triangle left to the attribute. All available language specific values are listed thereupon below the attribute and can be modified individually:
If you haven't specified any particular language specific value for the attribute, the value from the fallback language Default is used automatically. Once localized values can be removed easily by pressing the keys CtrlR when the affected value is selected.
IMPORTANT
If the attribute RowDistance is localized with several different values, the resulting distance for the entire font is determined by the largest value.