[Lazarus] Font sizes on various platforms
graemeg at opensoft.homeip.net
Tue Jul 7 15:29:21 CEST 2009
Graeme Geldenhuys wrote:
> - I first thought it was dpi related, but setting Linux to run at 96 dpi
> and Windows to 96 dpi there is still a size difference. Windows 8 point
> = Linux 10 point. Why?
And here is the exact same issue shown using a web page with CSS.
So the issue is wide spread, but still I don't know why. Also does that
mean I need to apply the same font size hack as the guy in the CSS article.
NormalFontSize = 13
NormalFontSize = 8
NormalFontSize = 10
NormalFontSize = 8 // ??? What would be correct as a default?
Label.Font.Size = NormalFontSize;
Yuck!!!! Imagine that all over your code? Is the ifdef part could be
done in some Constants.pas unit and used globally in your application,
but still it feels like a hack. Not to mention it makes GUI design a lot
more difficult if the same form is edited on various platforms.
- Graeme -
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
More information about the Lazarus