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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
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.