Search Issue Tracker
Not Reproducible
Votes
4
Found in
6000.0.51f1
6000.1.7f1
6000.2.0b5
6000.3.0a1
Issue ID
UUM-108862
Regression
Yes
Certain fonts display incorrect spacing in the UI Builder when text combines numbers and letters
How to reproduce:
1. Create a new project
2. Create a new UI Document (Assets > Create > UI Toolkit > UI Document)
3. Add a label and input the text “0a1a2a3a4a5a6a7a8a9a”
4. Import the attached fonts and create a font asset
5. Change the label text font to one of the assets
6. Observe the result
Expected result: The font shows with regular spacing
Actual result: The font shows with incorrect spacing
Reproducible with: 2023.2.0a5, 6000.0.51f1, 6000.1.7f1, 6000.2.0b5
Not reproducible with: 2022.3.63f1, 2023.2.0a4
Reproduced on: Windows 11
Not reproduced on: No other environment tested
Notes:
- Issue occurs with numbers 1 - 5, lowercase letters: a, b, f, o, and uppercase letters: E, M, N, Y, Z
- First font used will always reproduce the issue but adding another label with the other font will often not reproduce
- Restarting the project fixes the issue but will reproduce again with a new label
- The font shows normally on other GameObjects
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note:
The development team couldn't reproduce the issue. While we wait for a more consistent repro case, we recommend the following workaround:
Right-click the UnityFont and select Create > TextCore > FontAsset > SDF. Then, in the FontAsset’s Inspector, disable Get Font Features. This turns off kerning and avoids the use of problematic kerning data.