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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
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.