Measures

Values can be expressed in terms of a number of different measurement units. The following list describes the available units and how they are interpreted:

  • Whole numbers are stored directly (123 is stored as 123).

  • Decipoints (TopLeaf's internal measure) are stored directly (15dp is stored as 15).

  • Points, Inches, Centimetres and Millimetres are converted to decipoints and stored as the corresponding integer.

  • A Pixel is a relative measure determined by the resolution (DPI) of the output device. TopLeaf assumes a standard resolution (72 DPI) when interpreting pixel measures. One pixel = 10dp.

  • One Em is the size of the current font (1.5em is stored as 300 if the font size is 20pt=200dp).