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
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- Module installation fails with "Download failed: Validation Failed" errors when using beta.2 Hub version
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Shader Graph Category dropdown cannot be expanded/collapsed when clicking on the text
- Different text alignment in the column header in Entities "System" window
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.