Recent

Author Topic: [SOLVED] TLabel height  (Read 3997 times)

jamie

  • Hero Member
  • *****
  • Posts: 4342
Re: [SOLVED] TLabel height
« Reply #15 on: December 10, 2020, 12:58:55 am »
Always. If you link controls by using the Anchor Editor you can define the spacing between them with the BorderSpacing. I am rather sure that it can help with clipping the label because this is due to incorrect consideration of font metrics.

Well three is a InnerBorder property that I don't see in the Anchor editor unless I missed something and it does not seem to have any effects..
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 4342
Re: [SOLVED] TLabel height
« Reply #16 on: December 10, 2020, 01:06:24 am »
Hmm, I don't see any of that cutoff over here.. all content is showing property with large text and glyphs .

I run my screen at 96DPI maybe that has something to do with it ?
The only true wisdom is knowing you know nothing

winni

  • Hero Member
  • *****
  • Posts: 2280
Re: [SOLVED] TLabel height
« Reply #17 on: December 10, 2020, 01:44:35 am »
Hi!

96 dpi, KDE Plasma, gtk2, Suse Tumbleweed.


See cut off in attachment.
But I know this Lazarus Bug on Linux since  ~ 15 years.

Winni

jamie

  • Hero Member
  • *****
  • Posts: 4342
Re: [SOLVED] TLabel height
« Reply #18 on: December 10, 2020, 01:49:45 am »
I don't get that. Looks normal to me..

I'll try some different chars in there.
The only true wisdom is knowing you know nothing

jamie

  • Hero Member
  • *****
  • Posts: 4342
Re: [SOLVED] TLabel height
« Reply #19 on: December 10, 2020, 02:10:45 am »
Well there you go, you are on Linux. I keep telling everyone that windows is superior but they keep throwing stuff at me, mainly their notes with all the Linux bugs written on them. I've gotten hit, a lot ! but they still have plenty more buggy notes to throw at me so I stay clear now. ;)
The only true wisdom is knowing you know nothing

bd4kc

  • New Member
  • *
  • Posts: 46
Re: [SOLVED] TLabel height
« Reply #20 on: December 11, 2020, 11:13:01 am »
property Layout;
property OptimalFill;
property Font.size;
property AutoSize;

These property are related to each other, and I often worry about designing a label precisely. Adjust here and there many times. optimalfill and Layout there propertys can be tried more, autosize will also change itself, when you set other properties.

wp

  • Hero Member
  • *****
  • Posts: 8277
Re: [SOLVED] TLabel height
« Reply #21 on: December 11, 2020, 11:58:34 am »
This screenshot is taken off of LMDE4 Cinnamon, 64 bit, gtk2, MintY Dark. --> correct display, nothing cut off.

I would not say that the incorrect text height determination is a Lazarus bug. Lazarus cannot fix the inconsistencies of the widgetsets and their dependence on dozens of themes.

The problem with Linux compared to Windows is that it is so heterogeneous (I do agree that there are also problems of the Windows side -- so please, don't start a flame war here).
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

winni

  • Hero Member
  • *****
  • Posts: 2280
Re: [SOLVED] TLabel height
« Reply #22 on: December 12, 2020, 12:05:16 am »
Hi!

No flamewars but let's get the reason for this cut off .

As I said: I know this error since ~ 15 years.
My Linux Desktop System in all the years was always Suse.
Desktop was always KDE on gtkX.
When KDE had such nice features like a wooden roof on top of the windows  .....

My Lazarus packages  where sometimes from Suse.
But also from the fpc/Lazarus homepage. That differs.

On the other side you tell me with Cinnamon everything is ok.

Question 1: Is this a "Suse only bug" ?  Therefore we need more Infos from other Linux distros.

And if this is true then Question 2: How does Suse manage to cut off the label?
A little troll  with scissors inside? 
I got really no idea but joking.

Questions - nothing but questions.

Winni

winni

  • Hero Member
  • *****
  • Posts: 2280
Re: [SOLVED] TLabel height
« Reply #23 on: December 12, 2020, 03:56:27 pm »
Hi!

I keep on going on the search of the "magical" bug:

Just tested the behaviour on the comination Debian/KDE:

No problems with label and autosize. Nothing cut off.
At default setting (default font, 10 pt) the height of the label is 19 pixel
Screen  solution is 96 dpi.

Oppsite to Suse/KDE

The label does not set the correct height with autosize.
The lower part of large Letters and UTF8 Symbols is cut of.
At default setting (default font, 10 pt) the height of the label is 13 pixel
Screen  solution is 96 dpi.

As in both cases KDE / gtk2 are used this is not a KDE error.

Where do I find the bug???

Winni


lucamar

  • Hero Member
  • *****
  • Posts: 3768
Re: [SOLVED] TLabel height
« Reply #24 on: December 12, 2020, 04:25:48 pm »
Where do I find the bug???

Look for differences in the installed libraries (versión, etc.). Since it works in Debian/KDE, it's obvious that something in Suse is working differently.

Note also that some KDE themes/composers can't deal gracefully with GTK applications unless a "suplement" for GTK is added, usually in a package with a name like, say, "oxygene-gtk".
« Last Edit: December 12, 2020, 04:28:25 pm by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

winni

  • Hero Member
  • *****
  • Posts: 2280
Re: [SOLVED] TLabel height
« Reply #25 on: December 12, 2020, 04:51:04 pm »
Thanx Lucamar

I will have a look if there are different libs

As I thinks that themes are a waste of developer time, cpu time and ressources I never use them resp. throw them out.  If I want to look at beauty I don't look at the screen. I look at women. Yes - they exist. But not in this forum.

As I know this bug since ~15 years it must be a long term incorrect use of some libs.


Winni

jamie

  • Hero Member
  • *****
  • Posts: 4342
Re: [SOLVED] TLabel height
« Reply #26 on: December 12, 2020, 05:22:11 pm »

As I thinks that themes are a waste of developer time, cpu time and ressources I never use them resp. throw them out.  If I want to look at beauty I don't look at the screen. I look at women. Yes - they exist. But not in this forum.

Winni

What makes you think women don't exists here ? Haven't you seen girl coders with long hair, mustache and beard ?

Putting that off the side, there are woman here but I can't say if they have grown any facial hairs !  :D
The only true wisdom is knowing you know nothing

winni

  • Hero Member
  • *****
  • Posts: 2280
Re: [SOLVED] TLabel height
« Reply #27 on: December 12, 2020, 05:28:28 pm »

Bart

  • Hero Member
  • *****
  • Posts: 4221
    • Bart en Mariska's Webstek
Re: [SOLVED] TLabel height
« Reply #28 on: December 12, 2020, 05:41:32 pm »
Long time ago, I was on Suse 10.0.
I cannot recall that I ever saw this problem.

Bart

tetrastes

  • Jr. Member
  • **
  • Posts: 90
Re: [SOLVED] TLabel height
« Reply #29 on: December 12, 2020, 06:04:26 pm »

Bug report:

https://bugs.freepascal.org/view.php?id=38211

Not Suse only. I have also seen this bug on Fedora 32 LXQt.
And on Debian 10 (Xfce, gtk2) with font size 10 all OK, but with font size 9 you can also notice this bug, but not as big, as yours on Suse (left label is AutoSized, right is not, hope the difference is noticeable):

 

TinyPortal © 2005-2018