2.147 .height[enum]

This attribute can be used to define correction factors for calculating the grid height from the font.

Definition

  • Data type

    integer

  • Access

    get, set

  • changed event

    no

Index Range

scale_factor

With this index value, the attribute defines a percentage, which is multiplied with the base value as a scaling factor.

The base value is the height of a single-line edittext with this font.

scale_offset

With this index value, the attribute defines a pixel value that is added as a constant to the scaled base value.

Thus the grid height is calculated by the following formula:

grid height =
  ( <height of edittext with this font> * .height[scale_factor] ) / 100 +
    .height[scale_offset]

See also

Attributes .real_yraster, .width[enum], .yraster

Chapter “Calculating the Grid Size from a Reference Font” in manual “Resource Reference”