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
- Build and Run button greyed out for locally invalid architecture, despite remote build is specified
- Graphics Settings: “Use Defaults” checkboxes misaligned in Tier Settings section
- VFX Graph particles are not culled when using URP and Frustum Culling is enabled on VFX Mesh Output
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
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.