Bug 1212147 - Truncated text in dialog - TuxGuitar
Summary: Truncated text in dialog - TuxGuitar
Status: RESOLVED WORKSFORME
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: KDE Applications (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Fridrich Strba
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-08 19:24 UTC by Guillaume VIBERT
Modified: 2024-03-05 12:22 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
screenshot, text of 1st radio button is truncated (13.17 KB, image/png)
2023-06-08 19:24 UTC, Guillaume VIBERT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume VIBERT 2023-06-08 19:24:16 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
Comment 1 Fabian Vogt 2023-06-08 20:22:53 UTC
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.
Comment 2 Fridrich Strba 2023-06-09 10:27:01 UTC
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.
Comment 3 Guillaume VIBERT 2023-06-09 11:09:05 UTC
After installation of fetchmsttfonts package with Yast the problem is still there
Comment 4 Fridrich Strba 2024-03-05 06:14:34 UTC
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?
Comment 5 guiv42 2024-03-05 07:31:14 UTC
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.
Comment 6 Fridrich Strba 2024-03-05 12:22:17 UTC
I am closing this as worksforme for the while.