Recent

Author Topic: TLabel partially visible in Ubuntu MID?  (Read 4027 times)

Troodon

  • Sr. Member
  • ****
  • Posts: 484
TLabel partially visible in Ubuntu MID?
« on: September 09, 2009, 08:37:03 pm »
TLabel text is only about halfway visible vertically in Linux Ubuntu MID, perhaps because of how fonts are drawn on that particular platform. See the attached image for an example (image was scaled down twofold).

Ubuntu MID uses a subset of the GTK2 widget set and standard screen size is 800x480 px (maximum 1024x600 px) on a 4-7 inch display, therefore the default system font is quite large. And here is the problem:

Lazarus/FPC apparently sets the widget window height for TLabel to a value that is reasonable for the font size in the Lazarus form editor on Ubuntu Desktop; however, on Ubuntu MID the system font size is about twice that size, which makes the lower half of the text invisible in the application. I increased the value of the TLabel height parameter in the main form file unit1.lfm, to no avail.

I was wondering whether there is a workaround for this issue, other than setting the font size to a non-zero value in the form designer. Thank you in advance.  

« Last Edit: September 09, 2009, 10:25:31 pm by Troodon »
Lazarus/FPC on Linux

 

TinyPortal © 2005-2018