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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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.