Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index

Hi John,

What you see is clearly a bug. Even two.

First is a bug of character styles' relative size.

The relative size must evaluate first relative to its inheritance: i.e., if
the character style B (with a relative size) inherits from character style
A, then it needs to apply the relative size to the size defined in that
parent style A (if any). If the size in A is defined, and is absolute, then
the result is an absolute size independent from any paragraph settings;
e.g., if A defines 14 pt, and B defines 150%, then text styled B must be 14
pt * 150% = 21 pt. This case now works correctly.

But if A does not define a size; or if it also defines a relative size -
then the resulting character style as a whole defines a relative size (in
case A has 40%, and B has 150%, the resulting relative size is 40% * 150% =
60%). Then the multiplier must apply to the size defined in the text run's
superordinate. It might be another text run (the ODS defines that character
styles may nest - so this character style may be applied to some part of
text having another character style, and then the size of that superordinate
text run must be the base to which the multiplier must apply). Or it might
be the paragraph - and now the paragraph should define the base for applying
the percentage. And here we have the bug #1.

The other bug is that there's a possibility to define Default Paragraph
Style (or any paragraph style that doesn't inherit) to have a relative size.
That is definitely a bug, since there's nothing in any standard, or in any
setting, that would tell then which is the basis to which the relative size
is applied. And LO behaves erratically then: say, set default paragraph
style to 6 pt; see how everything becomes small, and default is 6 pt. Now
set default paragraph style to 150%; see how everything increases, and
paragraphs of default style are 9%. So it looks like it applied the ratio to
the old value - but the paragraph style's properties still show the relative
size, not 9 pt which it should! This is the bug #2.

It all needs bug reports (one for each bug).

A note: there's no UI for nesting character styles, and so my description
about nesting them can't be tested without direct editing of ODF. See

Sent from:

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.