Recent

Author Topic: TControl.Font  (Read 5391 times)

eric

  • Sr. Member
  • ****
  • Posts: 267
TControl.Font
« on: April 20, 2004, 04:49:42 pm »
In the present Linux/gtk implementation, the programmer can't set TControl.Font explicitly, because it's taken from the user's theme. What exactly does this mean? If it's the Gnome theme, what happens if the user doesn't have Gnome installed?

Eric

Anonymous

  • Guest
TControl.Font
« Reply #1 on: April 20, 2004, 06:07:26 pm »
A GTK theme defines the default font to be used for all GTK apps (likewise for GTK2). If used on a desktop like KDE then it defaults to the default theme for GTK/GTK2.

eric

  • Sr. Member
  • ****
  • Posts: 267
TControl.Font
« Reply #2 on: April 22, 2004, 10:57:20 am »
Quote from: "Anonymous"
A GTK theme defines the default font to be used for all GTK apps (likewise for GTK2). If used on a desktop like KDE then it defaults to the default theme for GTK/GTK2.


I see, thanks. It does unfortunately make it very difficult to design a GUI for an application in such a way that text labels and similar things always display correctly on a user's system. On my system the Lazarus IDE itself has this problem, and some dialogs have (for example) Cancel buttons which are not big enough to show all of the word 'Cancel'.

Eric

Anonymous

  • Guest
TControl.Font
« Reply #3 on: April 22, 2004, 01:17:25 pm »
Well GTK+ and GTK2 are designed for container based GUIs where each widget is placed in a container and that container is automatically resized depending on font/theme. Lazarus unfortunately does not support these containers and indeed some of its widgets would not function correctly in them (align and anchors would not work).

 

TinyPortal © 2005-2018