[Libreoffice-bugs] [Bug 140384] CHARACTER STYLE: Relative font doesn't work, if style has no parent style

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Mar 11 18:08:00 UTC 2021


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

--- Comment #4 from Regina Henschel <rb.henschel at t-online.de> ---
(In reply to Dieter from comment #3)
> Regina, do you know something about the expected result, if there is no
> parent style?

No, the standard has no rule for it.

The percentage in font-size in character styles is broken anyway. It should
take as basic value the font-size given in its parent character-style. But
instead it uses as basic value the font-size specified in the element
<style:default-style> of family 'paragraph' in file styles.xml in the
odt-package. The value there is set by LibreOffice without a possibility to
change it by the user other than changing it in the file text. It seems
LibreOffice takes the value, that was set in Tools > Options, when the file was
first saved. It is likely, that we have a bug report of this faulty behavior.

Neither the values in 'Default Paragraph Style' nor the values in 'Basic Fonts'
in Tools > Options are connected to this <style:default-style> element. They
are connected to a <style:style> element with style:name="Standard".

My view is, that LibreOffice should take the same way through the hierarchy (as
described in the standard) to determine the basic value as it would go, if no
font size was set in the character style.

Perhaps ask Michael Stahl about his view. He is Writer expert and member in the
ODF TC.

-- 
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/20210311/bc03aeb7/attachment.htm>


More information about the Libreoffice-bugs mailing list