Description: The background of the subscript text should have the same height as the normal text, which is true in the main text, but the text box does not follow the same behavior. (See attachment) Steps to Reproduce: 1. Open Libreoffice Writer; 2. Write "A1-B2" in the main text; 3. Set the style of "1" and "2" to "subscript" and the background of the text to yellow; 4. Make a text box; 5. Write "A1-B2" in the text box; 6. Set the style of "1" and "2" in the text box to "subscript" and the background of the text to yellow; Actual Results: The background color of "1" and "2" is handled differently from the normal text. Expected Results: The background color of "1" and "2" should handled consistently as the normal text. Reproducible: Always User Profile Reset: Yes OpenGL enabled: Yes Additional Info: Version: 7.2.5.1 / LibreOffice Community Build ID: 20(Build:1) CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb) Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
Created attachment 177425 [details] Picture of the reproduced result
(In reply to Hanato Kobato from comment #0) >... > Expected Results: > The background color of "1" and "2" should handled consistently as the > normal text. The textbox is not a styled paragraph. It is a draw shape. And, there is no Character Style being applied to any of the content--rather you've set Direct Formatting. But, for your use case--rather than a textbox (a Draw shape) insert a Frame "interactively" its formatting (by Direct Formatting or by Style) will follow other paragraph styling. And to exactly match the draw shape, you can drop the default frame border.
Created attachment 177438 [details] compare Frame w/Paragraph of DF text to a Draw Shape w/DF text