-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Text wrapping can fail and hide characters in code examples (TextEdit) #99
Comments
This seems like a Godot bug to me. It's also quite strange: it only happens on the web build, only with the smallest text size, and only upon first loading the page: reopening the lesson from the course outliner makes the text wrap as expected. I think it's not something we can fix definitively on our end. We can only work around this, I think. |
Here's an instance where the first lines colon, In lesson: Everything is visible before dragging the Size slider. Dragging the Size slider:
|
I found the reason: changing the font size wasn't detected by the TextEdit node, so it didn't update the text wrapping. The added code forces the text wrapping to update. |
I don't see any difference in behavior with or without 49540b8. Given the example in Lesson 1:
This is with or without that linked commit. No difference. |
I've removed the code introduced by the aforementioned commit, because I'm confident it doesn't so anything (there is a check in Unfortunately, it's very hard to debug text rendering, so I'll have to put this on pause. |
Marked as wontfix for now, we'll wait for Godot 4 and its new text server to address this. |
Now that Godot 4 is out, will this be looked into again? I'm getting the same issue with |
We're making a new app as a sequel to this one with web native technologies, that'll remove a good number of issues (selectable text, text to speech, accurate text wrapping, accessibility, easier translation support...) |
Describe the bug
Code example, last letter hidden.
To Reproduce
Steps to reproduce the bug:
Go to: 1. What Code is Like
https://gdquest.github.io/learn-gdscript/#course/lesson-1-what-code-is-like/lesson.tres
Scroll down to the code example
See the missing letter
n
at the end of line 2:This is observed with the Text Size slider dragged to the left (default).
Expected behavior
The last letter on the line should be visible,
or the line should wrap to show the last word on the next line.
The word
position
does become wrapped,when the Text Size slider is dragged to the middle.
Or to the right.
But the last word
position
also remains wrapped,when the Text Size slider is dragged to the left, from the middle or the right.
Reloading the page with the smallest Text Size.
Restores the initial behavior. Now the last letter
n
is missing again.As observed in the first screenshot.
Information about your device (please complete the following information):
Additional context
In this case, it only hides the last letter of a comment.
And the following lessons, might not be hiding any important characters.
But if/when the code examples are refactored/typo fixed, etc.,
then this issue might appear in the future.
The text was updated successfully, but these errors were encountered: