Search Issue Tracker
Fixed
Fixed in 2022.3.69f1, 6000.0.61f1, 6000.2.9f1, 6000.3.0b7, 6000.4.0a2
Votes
1
Found in
2022.3.61f1
6000.0.48f1
6000.1.1f1
6000.2.0a10
6000.3.0a1
6000.4.0a1
Issue ID
UUM-104237
Regression
No
Incorrect Preferred Height calculation when a single text line uses different Font Assets
Reproduction steps:
1. Open the attached “IN-99300.zip” project
2. Open the “Test” Scene
3. Observe the Game view
Expected result: All of the text has the correct height and is fully shown
Actual result: Text fields above the “x” symbol have incorrect height and have “…” written instead of text
Reproducible with: 2022.3.61f1, 6000.0.48f1, 6000.1.1f1, 6000.2.0a10
Reproducible on: Windows 10 (User reported), Windows 11
Not reproducible on: no other environment tested
Notes:
- Does not reproduce if the Fallback Font is selected as the main Font Asset
- Issue reproduces when a single text line contains at least two different TMP SubMeshUI components (e.g., mixed SDF fonts or FallbackFontAssets)
- Layout likely fails due to incorrect aggregation of Ascender/Descender/LineOffset metrics from these different components
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (fix version 6000.4.0a2):
Fix incorrect preferred height calculations when using multiple fonts
Resolution Note (fix version 6000.3.0b7):
Fix incorrect preferred height calculations when using multiple fonts
Resolution Note (fix version 6000.2.9f1):
Fix incorrect preferred height calculations when using multiple fonts
Resolution Note (fix version 6000.0.61f1):
Fix incorrect preferred height calculations when using multiple fonts
Resolution Note (fix version 2022.3.69f1):
Fix incorrect preferred height calculations when using multiple fonts. Fixed in com.unity.textmeshpro@3.2.0-pre.14