Unity Issue Tracker - TextMeshPro calculates Width Compression incorrectly when using certain values in the WD% field
Closed
UUM-92420
TextMeshPro calculates Width Compression incorrectly when using certain values in the WD% field
Unity: Text (TextMeshPro)
Won't Fix
6.5.X
6.4.X
6.3.X
6.2.X
6.1.X
6.0.X
2022.3.X
2021.3.X
Cancelling: the 6000.1 version has reached its end of life. If you need additional fixes, please upgrade to a newer Unity version.
Reproduction steps:
1. Open the attached “TMP Bug.zip” project
2. Open the “SampleScene”
3. Select “SampleText” GameObject from the Hierarchy
4. In the TMP Component find the “Auto Size Option” property and the “WD%” field
5. In the “WD%” field input value of “18”
6. Observe the Game view
7. Now in the “WD%” field input value of “19”
8. Observe the Game view again
Expected result: The text stays inside the container
Actual result: The text overflows from the container and “Auto Size Iteration Count: 100. Final Point Size: 30” log is visible in the Console