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
- Lights with Cookies generate Cookie Atlas and increase Memory usage every time when Play mode is entered
- Crash on mono_traverse_object_internal when exiting Play mode on a specific project
- Camera prefab shows up in overrides after upgrade when game view is changed to Simulator
- Prefab Override context menu does not appear when changing attributes on a Terrain Component
- Particles are visible through Mesh when Sprite-Lit-Default Material is used
Add comment