[Lazarus] Font sizes on various platforms

Graeme Geldenhuys graemeg at opensoft.homeip.net
Wed Jul 8 09:01:00 CEST 2009


Bruce Tulloch wrote:

> However to avoid polluting the code too much I make almost universal use
> of the ParentFont property (ie, assigned True) and assign the font at
> the root of the visual hierarchy (usually the form) at runtime based on
> the platform DPI.

But currently my Windows and Linux use the same 96 dpi setting, yet the 
8 pt font under Windows is the same size as a 10 pt font under Linux. So 
the dpi value doesn't seem to be the only culprit. I'm using Arial on 
both platforms as my default font in my applications.

Also, I follow a mixed bag of UI Guidelines - font sizes similar to Mac 
OS X. I use different size fonts in one form.

For example (under Linux):
  - Normal Font is 10pt and used in Labels, Button Captions etc..
  - Small Font is 8pt and used for extra descriptions below components
      or for tick captions in a Slider component etc.. The content of
      Grids also use Small Font.


Regards,
   - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/





More information about the Lazarus mailing list