-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange line breaking behavior when using the SWT.WRAP flag in a SWT Label #1392
Comments
Sadly eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/SWT.java Lines 1543 to 1554 in 90111e3
so all one can expect is that some wrapping is performed but not how exactly. |
Do other win32-API based software show the same issue? |
I was hoping to get hold of someone who knows about the "strange" line breaking behavior. I am sadly not as educated in this matter to answer any technical questions back. |
Seems to work better in Text and StyledText components. We will take that road instead of using the Label class. |
Describe the bug
Strange line breaking behavior when using the SWT.WRAP flag in a SWT Label and the text contains Swedish characters (åäö).
Seen so far only on Windows (11). I expected the wrapping to happen only on white spaces and not on "special characters" like åäö (or similar extra chars in other languages). Could it be that all the line breaking functionality is handled by OS calls and that we have no control over how it happens in the Java code? Or, is it possible to understand why the line break happens?
Environment
JRE/JDK version 21.0.4.7.1
Eclipse 4.31 (2023-03)
Screenshots
Please see screenshots for clarification. The screenshot with the arrows shows where the unwanted line break happens. Taken from Windows 11.
The screenshot without any arrows where it looks ok is taken from MacOS Sonoma.
The text was updated successfully, but these errors were encountered: