Search Issue Tracker
Not Reproducible
Votes
0
Found in
4.5.0a5
Issue ID
624504
Regression
No
IMGUI Labels wrap improperly when styled bold and beside a flexiblespace
When rendering an IMGUI GUILayout.Label inside a horizontal layout containing a FlexibleSpace, if a style is applied to the Label which enables word wrapping AND alters the font's dimensions (e.g. by setting the font's weight to bold), the Label's text will incorrectly wrap its contents.
Preconditions: Unity 4.5.x installed, empty project.
Steps to Reproduce:
1 - Attach the included C# "BoldIMGUI" script to an object in the scene.
2 - Run the scene.
3 - Observe that the text appears normal.
4 - Click the "Bold Only" and "Wrap Only" buttons. Observe that the text remains normal.
5 - Click the "Bold & Wrap" button.
6 - (EXPECTED) Text becomes bold, does not wrap.
6 - (OBSERVED) Text breaks the final word onto a new line, despite much visible space remaining between the end of the text line and the right-aligned image.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] The Player freezes when disabling Bluetooth while connected to the headphones
- Addressable bundles are not retrieved from the cache when a WebGL Player is refreshed
- Sprites are incorrectly occluded by Sprite Physics Shape culling when behind in sorting order
- CPU usage is increased when the Editor is idle with the ProBuilder Package installed
- Unstable lighting when additional light sources are added in Shader Graph nodes
Add comment