Search Issue Tracker
Not Reproducible
Not Reproducible in 6000.3.X
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
- Build fails when building a project containing an 18+ dimension array with IL2CPP
- [Android][Sentis] Human poses are not detected when using the BlazePose model
- Sprite Editor Outline Tool Overlay is not displayed when no Sprite is selected
- “No method with RuntimeInitializeOnLoadMethod attribute” warning from ReadmeEditor.cs is thrown after installing Project Auditor Rules
- Projection matrix is altered when using RasterCommandBuffer.ClearRenderTarget on DX12 and Metal
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.
Resolution Note (6000.3.X):
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.