https://bugs.documentfoundation.org/show_bug.cgi?id=96980
Bug ID: 96980
Summary: Line and page/table border drawing mismatch
Product: LibreOffice
Version: 5.2.0.0.alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: trivial
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
When i say "Line" i mean the "Line" tool from the drawing toolbar (also applies
to TextBox tool from that toolbar).
Bug (1)
Page border width is in "pt", one pt is 0.352(7)mm.
Minimal border width is 0.05pt (0.017635 mm).
Border width granularity is 0.01pt.
Maximal border width is 9pt (3.175mm).
Line width is in "cm", one cm is 10mm.
Minimal line width is 0.01cm (0.1mm).
Line width granularity is 0.01cm (0.1mm).
Maximal line width is freaking big.
Meaning that:
A) it's very difficult to make the line width to be visibly equal to the page
border width, unless you choose a very specific size (like, 2.83pt page border
and, accordingly, 0.01cm line)
B) page borders can be much thinner than lines could ever be
C) lines can be much thicker than page borders could ever be
Bug (2)
Actual page border is drawn *inward* from the logical page border.
Actual line is drawn *through* the logical line.
This is obvious if you make really thick 9pt page border (say, 2cm space from
the left edge of the page) and then look at the horizontal ruler. The ruler
will tell you that the left edge of the thick black line of the border is
exactly 2cm away from the edge.
At the same time, if you create a line, set its PositionAndSize to be 2cm
ToTheLeft from the EntirePage, you'll see that the line center is 2cm away, not
its left edge.
Obviously, this is preferred behaviour for lines (as lines have no inherent
"inward" or "outward" edge). However, this also applies to the TextBox tool.
Text boxes *do* have inward and outward edges.
Tables also have inward and outward edges, *and* their borders are defined as
page borders - in pt, up to 9.00pt. However, table borders are drawn like lines
- squarely through the logical border, so that half the width is on one side,
and the other half is on the other side.
Possible fixes:
For (1) - Allow lines/borders to be defined in pt/cm respectively, with the
granularity and maximal width changed to match
For (2) - Add inward/outward/centered property to each line (for lines inward
would be right, outward would be left, relative to the direction of the line;
for textboxes it's obvious; defaults to centered). Add inward/outward/centered
property to page/table borders (defaults to inward for pages, centered for
tables).
Use-case: i want to place a textbox at the edge of my page and align it with
the page border. That has proven to be very difficult, because of the
border/line width discrepancy and because textbox line is drawn through the
textbox logical border while page border line is drawn along its inward logical
edge. When exported to PDF, i can clearly see that the box and the page borders
are not aligned (i would assume that printing it on paper wouldn't change
anything).
This applies to both 5.2.0.0.alpha0 and 5.0.4.2.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs