Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.1.0a1
2019.1.9f1
2019.2.0a1
2019.3.0a1
Issue ID
1168380
Regression
No
GUIStyle.CalcSize() clips a part of the text when Custom font is scaled
How to reproduce:
1. Open user-supplied project
2. Enter the Game Mode > observe the lower text
Expected result: Whole text is shown
Actual result: The last symbol (!) is clipped
Reproducible with: 2017.4.31f1, 2018.4.5f1, 2019.1.13f1, 2019.2.0f1, 2019.3.0a11
Notes:
Everything is working as intended in version 5.6.7f1
Is not reproducible with the default font (Arial)
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note:
Since Unity 2017 we have introduced some changes to the way text is aligned on the pixel grid including when transforms are applied.
This might cause the text rectangle to not be reusable directly after applying a transformation.
Therefore when using GUI transformations it is required to call CalcSize() again to get correct measurements.