Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Set font size in millimeter

edited March 2004 in General
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?)

Thanks,
Siegbert

Comments

  • edited March 2004
    Hi Siegbert,

    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;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2004


  • edited March 2004

    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
This discussion has been closed.