Bug 131763 - Character borders and area color don't render correctly when line spacing is fixed
Summary: Character borders and area color don't render correctly when line spacing is ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
5.2 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Borders
  Show dependency treegraph
Reported: 2020-04-01 02:15 UTC by Kenneth Hanson
Modified: 2020-09-28 15:56 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:

Test document demonstrating issue (22.72 KB, application/vnd.oasis.opendocument.text)
2020-04-01 02:16 UTC, Kenneth Hanson
Exported PDF of test document (12.64 KB, application/pdf)
2020-04-01 02:17 UTC, Kenneth Hanson

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Hanson 2020-04-01 02:15:32 UTC
The effect is somewhat inconsistent, but in general can be seen when text with a character border or area color formatting extends across multiple lines, whether by automatic line breaking, manual line breaks, and even paragraph breaks.

I believe you can get the effect even when short segments of text cut across lines, but it is easiest to demonstrate with very long segments.

I've provided an example with character borders.

Testing now with v6.4.2.2, but it's been around for several major versions.

Steps to Reproduce:
1. In paragraph formatting, set line spacing to "fixed" and choose a size noticeably larger than the font size
2. In character formatting, set character border or area.
3. Input text with this formatting that extends over multiple lines, via automatic line breaking, manual line breaks, or paragraph breaks

Actual Results:
Height of the border or colored area is inconsistent from line to line.

Expected Results:
Height of the border or colored area should be the same as the character height (?), or perhaps the full line height, but not randomly switch between the two.

Reproducible: Sometimes

User Profile Reset: No

Additional Info:
It's not clear to me what the correct behavior should be. It's not possible to configure line height and interline-spacing independently in LibreOffice, since each "line spacing" option works differently.
Comment 1 Kenneth Hanson 2020-04-01 02:16:12 UTC
Created attachment 159203 [details]
Test document demonstrating issue
Comment 2 Kenneth Hanson 2020-04-01 02:17:06 UTC
Created attachment 159204 [details]
Exported PDF of test document
Comment 3 Xisco Faulí 2020-04-01 09:17:57 UTC
Reproduced in

Build ID: 169a10f0e4680814145b668c6320be04038d7a89
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded


Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8)

in previous versions, the border are not even imported
Comment 4 Regina Henschel 2020-04-01 23:48:28 UTC
Behavior of character border is not yet specified. It is still not clear, what should be the "correct" behavior. CSS, means browsers, and Microsoft Office do it different.