Search Issue Tracker
By Design
Votes
0
Found in
2022.3.48f1
Issue ID
UUM-83338
Regression
Yes
The width of UI Toolkit buttons with Rich Text is calculated incorrectly when using the "bold" tag
How to reproduce:
1. Open the attached “IN-84259” project
2. In the Assets folder select and open the “ButtonIssueRepro” UXML file
3. Observe the Viewport window
Expected result: The two text buttons are perfectly aligned vertically
Actual result: The top text button is slightly cut off on the left side compared to the bottom text button
Reproducible in: 2022.2.0a10, 2022.3.48f1
Not reproducible in: 2021.3.44f1, 2022.2.0a9, 6000.0.21f1
Reproducible on: Windows 10, Windows 11
Not reproducible on: No other environments tested
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
This behavior is expected. When no fallbacks are defined in the FontAsset’s font weight fallback table, bold or italic styles are synthetically generated from the primary font asset’s glyphs. This process inflates the glyph vertices without impacting layout.
For higher-quality bold rendering, we recommend specifying a fallback in the font weight table.