Member attributes: Height
This attribute configures the height of the font represented by a font resource member.
The attribute Height determines the size of the font specified in the attribute FontName of a font resource member. This attribute is expressed in pixel and must be an unsigned integer literal > 0. Please consider, that the height of a font covers the complete ascent and descent area optionally including the space for accent characters depending on how you configure the attribute HeightMode.
If the attribute HeightMode is configured with the value Compatible, the original Embedded Wizard method is used to calculate the font size. In this case the specified Height of a font covers the ascent and descent area including the space for the accent characters, as shown in the following image:
If the attribute HeightMode is configured with the value Popular, the calculation method is conform to how other popular applications (e.g. Adobe Photoshop, Affinity Designer, etc.) interpret the font size. In this case the specified Height of a font covers the ascent and descent area excluding the space for accent characters, as shown in the following image:
if you have a font resource configured with Height e.g. 100 pixel, the resulting glyphs will appear smaller if you select Compatible in the HeightMode. This is because the 100 pixel includes also the accent space. If you select the mode Popular, the glyphs will appear slightly bigger since the 100 pixel includes only the ascent and the descent area.
The exact ratio between ascent and descent is a detail resulting from the metric information, the designer of the respective TrueType font has specified originally. Embedded Wizard limits only to use this metric information. Overriding the ascent/decent ratio is not possible.
Besides the ascent and descent, every TrueType font can contain an optional leading metric, which determines a padding to add between two consecutive rows when displaying multiline text blocks. If the TrueType font provides such leading metric, Embedded Wizard uses it accordingly. In this case, the distance between two text rows is equal to ascent + descent + leading. The following image demonstrates the described relation:
This automatically calculated distance can be overridden explicitly by using the attribute RowDistance. In this way you are able to create fonts with larger or even smaller distance between their text rows.
Modify the attribute
The attribute Height 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.
If the attribute Height is localized with several different values, the height of the resulting font and thus the distance between text rows within a text block are determined by the largest value.