Search Issue Tracker
Won't Fix
Votes
0
Found in
6000.0.51f1
6000.1.8f1
6000.2.0b7
6000.3.0a1
Issue ID
UUM-110335
Regression
Yes
Text becomes wrapped when using GUIStyle.CalcSize to set the size of the Rect
Steps to reproduce:
1. Open the attached “GUIMonoFont6.0.zip” project
2. Open the “SampleScene”
3. Enter Play Mode
4. Press the “+” button to add a letter to the string
5. Observe the text
Expected result: The text is written in one line
Actual result: The text is wrapped sometimes
Reproducible in: 2023.1.0a20 (88c767dfc7b6) , 6000.0.51f1, 6000.1.8f1, 6000.2.0b7, 6000.3.0a1
Not reproducible in: 2022.3.63f1, 2023.1.0a19
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: The text becomes wrapped every 3 clicks then turns back to inline and repeats again
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Active Targets section text in Graph Inspector is truncated despite available space
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
Resolution Note:
While the bug report is entirely valid, this is not something we can fix in TextCore at the moment. The floating point calculations involved might accumulate errors differently on some system/fonts and fixing this might causes other problem elsewhere. In addition to that Imgui does not really support properly display scaling that occurs in the editor (including the game view) and it's adding up to the potential instabilities.
To guarantee the text fit, the user can probably add one horizontal pixel without any consequence.