[Lazarus] Labels and Font size

Graeme Geldenhuys graeme at geldenhuys.co.uk
Mon Mar 18 19:50:23 CET 2013


On 2013-03-18 16:39, Jürgen Hestermann wrote:
> What I just found is that this is influenced by the Windows font size settings.
> It is "big" on my machine and "normal" on the machine at work.
> If I change it to normal on my machine everything looks okay.
> Do you mean this too?

Yes, that is exactly what I meant.  Kylix (and I believe Delphi) had a
DPI setting stored in the form file (*.xfm). This was then used to
automatically scale the form and its content if another system had a
different DPI value.

Incidentally, this is also why popular toolkits like GTK2+, Qt and Java
have layout managers - the prevent such dip issues with great ease.

How this is handled in LCL is beyond me. I think I say a article in the
wiki, where somebody developed 2-3 functions ScaleDpi() etc that helps
with this problem. It wasn't perfect, but much better than nothing.


Regards,
  - Graeme -

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





More information about the Lazarus mailing list