Bugzilla – Bug 1212147
Truncated text in dialog - TuxGuitar
Last modified: 2024-03-05 12:22:17 UTC
Created attachment 867461 [details] screenshot, text of 1st radio button is truncated This is my first bug report, please tell me if I'm doing anything wrong. Some text fields are truncated in dialogs of TuxGuitar application. Steps to reproduce: - my configuration: Tumbleweed / KDE / X11 - install TuxGuitar with Yast from official repository (v1.5.4) - select menu "Measure / Add": a dialog opens - at this stage (1st time just after install), the dialog may have a really incorrect size because of a known bug of Eclipse SWT (https://github.com/eclipse-platform/eclipse.platform.swt/issues/568). If so, close dialog, and re-open it. The text associated to first radio button is truncated (see attached screenshot). Same problem is also present in other dialogs, when displayed strings are long (language-dependent). Problem is absent in flatpak version of TuxGuitar installed with Discover (v1.5.6). I instrumented the source code of TuxGuitar 1.5.6, and rebuilt it from source with the latest version of Eclipse SWT (4.27). The problem is still present: - the computed width of the radio button control in attached screenshot is 258px - if it wasn't truncated, the effective width would be 261px with zero margin Just for information: - problem is not reproduced with Leap 15.4 / KDE - problem is not reproduced with Tumbleweed / Gnome So there is a chance other applications using java / SWT could also be impacted. Please tell me if I can help in any manner. Regards, guiv
Might be a bug with the breeze GTK integration or even something like different font sizes. I have no idea how to narrow this down further with SWT, reassigning to the TuxGuitar maintainer to give some hints.
Is it possible that some fonts used in the interface have wrong metric information? I am not running kde, so cannot reproduce it, but I would suggest for TW to install something like fetchmsttfonts and see whether the problem does not disappear. I had some times ago problem with some fonts that were returning wrong metrics information when polled from Java. Just I never really understood why, because the workaround of installing the MS fonts was way to simple.
After installation of fetchmsttfonts package with Yast the problem is still there
Could you please check with the updated version. I run it here and see the dialogues complete. Just I am not running it in KDE. Could you verify and close if it is OK?
Problem is no more visible with TuxGuitar 1.6.1, so I think this issue can be closed. But underlying bug is still there, it's just been bypassed upstream by a (rather dirty) workaround (https://github.com/helge17/tuxguitar/pull/224/commits/10f569c85c7b11fd78d6760ed003a53818e5c9b6). Same issue is visible in some dialogs in Eclipse, which I guess is also using SWT. Also visible in at least another distro (debian 12). So I don't know where to create an issue: could be KDE, could be Eclipse SWT.
I am closing this as worksforme for the while.