Graeme Geldenhuys
2006-03-15 08:25:24 UTC
Hi,
Does Lazarus take into account the DPI setting of the system to set
the font sizes, etc...? From my initial observation I would guess not
(see screenshot). The editor font and the Editor Window's Title is the
correct font size, but the Main Menu, Component Palette Tabs, Editor
Tabs and the Popup Window in the editor has a huge font.
eg: Mozilla Firefox and Thunderbird has an option under the Font
settings, to custom set the DPI or use the System Setting. My X
server is running at 90x90dpi (calculated from my actual display
size). Setting Thunderbird to 96dpi gives me big fonts, setting it to
System Setting, give me an accurate font size (looks better and in
proportion).
I am looking at the issue with the Compiler Options dialog regarding
clipping of text (see my previous post for a screenshot). I have the
same problem in our commercial application we are developing. Under
Windows you design a GUI interface so it looks great. Windows
normally defaults to 96dpi. Taking that same application and running
it under Linux (which the dpi could be different for every system) the
interface looks crap! Lots of clipping of labels, labels to close to
each other, button caption doesn't fit in button, etc.
So what is the best approach to fix this? Are you supposed to us the
DPI setting, or just keep playing with the controls AutoSize property
(if it has one) and Anchor properties and hope for the best.
There must be some way of getting this right. Some application
(though not to many) under Windows actual handle the systems dpi
setting correctly. You can change the dpi and the application scales
or something, and the GUI is still perfectly usable.
Any ideas on this topic?
Regards,
- Graeme -
Does Lazarus take into account the DPI setting of the system to set
the font sizes, etc...? From my initial observation I would guess not
(see screenshot). The editor font and the Editor Window's Title is the
correct font size, but the Main Menu, Component Palette Tabs, Editor
Tabs and the Popup Window in the editor has a huge font.
eg: Mozilla Firefox and Thunderbird has an option under the Font
settings, to custom set the DPI or use the System Setting. My X
server is running at 90x90dpi (calculated from my actual display
size). Setting Thunderbird to 96dpi gives me big fonts, setting it to
System Setting, give me an accurate font size (looks better and in
proportion).
I am looking at the issue with the Compiler Options dialog regarding
clipping of text (see my previous post for a screenshot). I have the
same problem in our commercial application we are developing. Under
Windows you design a GUI interface so it looks great. Windows
normally defaults to 96dpi. Taking that same application and running
it under Linux (which the dpi could be different for every system) the
interface looks crap! Lots of clipping of labels, labels to close to
each other, button caption doesn't fit in button, etc.
So what is the best approach to fix this? Are you supposed to us the
DPI setting, or just keep playing with the controls AutoSize property
(if it has one) and Anchor properties and hope for the best.
There must be some way of getting this right. Some application
(though not to many) under Windows actual handle the systems dpi
setting correctly. You can change the dpi and the application scales
or something, and the GUI is still perfectly usable.
Any ideas on this topic?
Regards,
- Graeme -