Bug 146680 - The background color of subscript text in a text box is handled differently from those in the main text
Summary: The background color of subscript text in a text box is handled differently f...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-10 10:02 UTC by Hanato Kobato
Modified: 2022-01-10 18:48 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Picture of the reproduced result (8.20 KB, image/png)
2022-01-10 10:03 UTC, Hanato Kobato
Details
compare Frame w/Paragraph of DF text to a Draw Shape w/DF text (10.46 KB, image/png)
2022-01-10 18:48 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hanato Kobato 2022-01-10 10:02:34 UTC
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
Comment 1 Hanato Kobato 2022-01-10 10:03:47 UTC
Created attachment 177425 [details]
Picture of the reproduced result
Comment 2 V Stuart Foote 2022-01-10 18:39:39 UTC
(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.
Comment 3 V Stuart Foote 2022-01-10 18:48:04 UTC
Created attachment 177438 [details]
compare Frame w/Paragraph of DF text to a Draw Shape w/DF text