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
- URP Realtime reflection probes do not update when RenderProbe() is being called once per second
- Addressable terrain shader variants are stripped from the Player
- [iOS] Debug.Log() appears as <private> in Console app
- UI stays in the background when it is disabled in simulator
- A wrong log file is attached when project is launched with a "-logFile" command line argument
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.