[Libreoffice-bugs] [Bug 94464] Text Body default line spacing too big ( proportional 120% instead of Single )

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 1 22:08:23 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=94464

--- Comment #27 from Regina Henschel <rb.henschel at t-online.de> ---
(In reply to Khaled Hosny from comment #26)
> Other than that, if you want, say, 120% of point size, make sure you are
> really doing that and not a 120% from the default font line spacing which is
> completely unrelated.

And here LibreOffice is surely wrong. Results of some measuring for "Liberation
Serif" 12pt:
Line spacing at 100% (="single") is 0.49cm
Line spacing at 120% is 0.58cm; 0.49cm*1.2=0,588cm
Line spacing at 200% is 0.97cm; 0.49cm*2 =0.98cm
Obviously LibreOffice takes the line spacing "single" as reference for its
percent calculation.

If I measure from top "h" to down "p", I get 0.39cm.
If I measure the width of "m", I get 0,326cm.
Taking that as "font size", makes "single" line spacing having a leading
included, as RGB has written.

I get similar results for "Palatino Linotype" 12pt:
Line spacing at 100% is 0.57cm
Line spacing at 120% is 0.68cm; 0.57cm*1.2=0,684cm
The "h" to "p" distance is here 0.42cm and the width of "m" is 0.371cm.

The line spacing is set in a fo:line-height attribute. The percentage value of
it references the attribute "font-size" of CSS. But I'm not sure, how CSS
measures "font-size".

I support to set line space to "single" in style "Text body".

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170601/fef5f80d/attachment-0001.html>


More information about the Libreoffice-bugs mailing list