Is it possible to set the font size of a label within a report in millimeter? (Or at least to determine what the height of the current font size in mm is?)
ReportBuilder uses the Delphi TFont object for all it's fonts. By definition, a TFont (and most other fonts) is measured by Points. Though it is not always accurate, a Point is generally defined to be 1/72 inch. Using this measurement, you can use the following formula to determine the approximate size of the font you are using...
The Delphi TFont object is documented in the Delphi help. There is a TFont.Size property that is in points and a TFont.Height property that is in screen pixels. So yes, the unit increment are limited.
Comments
ReportBuilder uses the Delphi TFont object for all it's fonts. By
definition, a TFont (and most other fonts) is measured by Points. Though it
is not always accurate, a Point is generally defined to be 1/72 inch. Using
this measurement, you can use the following formula to determine the
approximate size of the font you are using...
FontSizeInMM := (TFont.Size / 72) * 25.4;
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The Delphi TFont object is documented in the Delphi help. There is a
TFont.Size property that is in points and a TFont.Height property that is in
screen pixels. So yes, the unit increment are limited.
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com