-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
LineEdit last characters disappear with text align=right and using a Dynamic font with char_space>0 #34951
Comments
I think this has something to do with The sample text used is "Hello!"
However, setting the character spacing to anything above one (negatives won't trigger this) will yield a different result (numbers vary depending on the character spacing, 1 in this case):
Shouldn't the maximum offset ( Update_1 This bug is present in 3.0.7.devel.custom_build.5bfb10f (commit 5bfb10f on 3.0) |
So after constant testing, I've come up with a possible solution. Calculate the
This solution is a hacky one, and doesn't account for text longer than the widget. Can I get some help? edit Nevermind, this doesn't account for font sizes less than 4. |
@FlashDaggerX I would take a guess that it's also happening on centre alignment as well, due to |
Thank you for the suggestion. I'm quite new at this. |
Still valid in 3.2.4 beta3 |
Hello, I found out that the problem is more related to the scale used. |
Godot version:
Godot 3.1 release / 3.2-beta 5
OS/device including version:
Windows 10 / GTX 1060
Issue description:
I have used a DynamicFont with char_space=2 in a LineEdit.
If you set the alignment to left, center, or fill everything works fine, but after changing the aligment of the LineEdit text to right aligned the last characters of the text disappear.
After setting the char_space of the font back to 0 the full text of the LineEdit visible using right alignment.
Steps to reproduce:
Create a LineEdit control which has the text right aligned.
Add a DynamicFont to the LineEdit and change the char_space to any value bigger zero.
Minimal reproduction project:
LineEditCharSpaceBug.zip
The text was updated successfully, but these errors were encountered: