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
- “Label” name in Sprite Library Editor window lacks character limit causing long names go under the Object Field
- Preview image (screenshot) is not available after capturing snapshot in Memory Profiler
- Crash on UNITY_FT_Stream_ReadAt when changing TMPro properties after unloading an AssetBundle
- Particles spawn at the same position when using raw byte address buffer in VFX Graph
- Decal Shader Graph - Custom vertex interpolators are always 0
Add comment