Bug 158193 - WRITER: what are the limits of paragraph Area colour fill?
Summary: WRITER: what are the limits of paragraph Area colour fill?
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Paragraph
  Show dependency treegraph
Reported: 2023-11-13 10:33 UTC by ajlittoz
Modified: 2023-11-17 05:45 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:

Sample showing a stray line above text (40.03 KB, application/vnd.oasis.opendocument.text)
2023-11-13 10:33 UTC, ajlittoz

Note You need to log in before you can comment on or make changes to this bug.
Description ajlittoz 2023-11-13 10:33:10 UTC
Created attachment 190806 [details]
Sample showing a stray line above text

Fedora 39 with kernel 6.5, KDE Plasma desktop
VCL: kf5 (cairo+xcb)

There is a discrepancy between paragraph style area extent and character style highlight extent.

A character style can be used to temporarily override paragraph style (area) background. Unfortunately character highlight does not extent vertically to the same height as paragraph area, leaving a thin top border over text.

The attached sample file shows the effect.

The report is a follow-on of https://ask.libreoffice.org/t/how-do-i-highlight-around-text-rather-than-the-text-itself/98136/

It addresses specifically this issue and a workaround is provided. However working on the question revealed a more general problem illustrated in the sample file. There is no easy answer to this general problem since it involves "aesthetics". So opinion of UX, typographers and developers is needed.

IMHO, the issue with the top line is a bug. Question is open for intermediate lines inside paragraphs because increased leading may be necessary to enlighten text with some type faces.
Comment 1 Mike Kaganski 2023-11-13 11:07:30 UTC
In Version: (X86_64) / LibreOffice Community
Build ID: c4af5b1259bceea6e979e6fe2435dbee7a5a87c2
CPU threads: 12; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: CL threaded

the thin line is *below* the text in the first paragraph. It is indeed a bug, somewhere there's an off-by-1 error, or a rounding error.

Is it a regression? Needs checking in older versions.