Search Issue Tracker
By Design
By Design in 2023.2.X
Votes
1
Found in
2022.3.4f1
2023.1.3f1
2023.2.0a21
Issue ID
UUM-41305
Regression
Yes
Gaps between letters appear when using a font that should not contain gaps if using TextMeshPro text
How to reproduce:
1. Open the user’s attached “TextMesh Pro Scaling Bug.zip” project
2. In the Game window observe the text below the “TextMesh Pro” text
Expected result: There are no gaps between the letters
Actual result: There are gaps between the letters
Reproducible with: 3.0.6 (2022.1.0a1, 2022.1.24f1), 4.0.0-pre.2 (2022.3.4f1, 2023.1.3f1, 2023.2.0a21)
Not reproducible with: 3.0.6 (2021.2.0b1, 2021.3.28f1)
Reproduced on: macOS 13.2.1 (Intel)
Notes:
Issue not reproducible with a legacy text
Reproducible in the editor and the player
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
- Long Property names are not truncated in the Add Property dropdown in the Animation window when the Long Property name does not fit
- [iOS] High CPU load when device keyboard is open
- Selected Animation clip in the Animation window changes when the Domain Reload is triggered
- Animation window scrollbar keeps resetting when the scrollbar width is changed after adding an event
- LocalizationSettings.InitializationOperation hangs when re-entering Play Mode with Domain Reload disabled
Resolution Note:
The gap between the letters when scaling can be explained by the Atlas Render Mode. When set to "Hinted", it will always align glyphs on the pixel grid to ensure crisp text. This, however, comes at the expense of overriding the original glyph's position, as it may need to offset the glyph position to ensure it is aligned on the pixel grid. The offset is what's causing the missing pixel column to appear at certain scales.
Using an Atlas Render Mode of "Raster" instead of "Raster Hinted" should fix the issue.
Resolution Note (2023.2.X):
The gap between the letters when scaling can be explained by the Atlas Render Mode. When set to "Hinted", it will always align glyphs on the pixel grid to ensure crisp text. This, however, comes at the expense of overriding the original glyph's position, as it may need to offset the glyph position to ensure it is aligned on the pixel grid. The offset is what's causing the missing pixel column to appear at certain scales.
Using an Atlas Render Mode of "Raster" instead of "Raster Hinted" should fix the issue.