Before I officially report this as a bug, i wanted to ask the community if this is just a me thing or not. (UE 5.3)
From what I can tell the vertical position of both Underline and Strikethrough (FTextLineHighlight
derived) text style brushes calculate incorrectly when the size of the font used in a rich text widget (UMG or slate) varies.
Testing methodology:
I created a Data Table (RichText)
containing 3 styles:
- Default used size 16 font.
- 12Pt_Underline Used size 12 font and an underline brush.
- 24Pt_Underline used size 24 font and an underline brush.
I then added a Rich Text Block
to a new widget blueprint and assigned the widgets Text Style Set
to the new data table and set the Text Content
to This <12pt-Silver>text has</> varying sizes <24pt-Silver>and underlines.</>
.
The image below shows the result. The underline for the largest text renders correctly, however any smaller text is unable to calculate it’s underline position correctly. It seems to me as though vertical position is calculated from the runs center and not the baseline.