[Libreoffice-bugs] [Bug 109029] New: Character style percentage font sizes are not updated automatically
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sun Jul 9 06:15:36 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=109029
Bug ID: 109029
Summary: Character style percentage font sizes are not updated
automatically
Product: LibreOffice
Version: 5.3.3.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: khanson679 at gmail.com
Description:
With paragraph styles it is possible to create a nested hierarchy of styles
with percentage font sizes, where the percentage is calculated based on the
parent style. These values are automatically updated when the parent value
changes.
Character styles ought to work the same way, but they don't. Bug 108498,
Comment 4 states:
> It should be based on its parent style.
>
> It is in ODF 20.183fo:font-size
> "In contrast to XSL, percentage values can be used within common styles only
> and are based on the font height of the parent style rather than to the font
> height of the attributes neighborhood. Absolute font heights and relative
> font heights are not supported."
>
> So with the current fo:font-size it is not possible to base the character
> font-size on the paragraph in which the character is, which gets this style
> applied.
>
> The percent values is written to file and the percent value is calculated,
> when the style is defined in the beginning. But the text in the document is
> not updated, when the font-size of the parent character style is changed.
>
> If you revisit the character Font dialog page and click on OK without any
> changes, then the text in the document is updated.
There are several problems with this. The issue in this bug is the fact that
child styles do not update to reflect changes in the parent. (The fact that the
values displayed by the interface are misleading given the actual behavior, and
the fact that the advice in the last paragraph fails in certain circumstances
will be addressed separately, if need be.)
The fact that percentage font sizes in character styles do not work like they
do in paragraph styles is confusing to the user.
Also, the need to have to manually update all child styles almost completely
defeats the purpose of having percentage font sizes at all. I can't see
anything in the ODF spec that implies that there should be a difference, either
in the quote above or elsewhere (I looked as best I could).
Can we get the character style behavior changed to match paragraph styles? If
so, the other issues I mentioned will be taken care of as well.
Steps to Reproduce:
1. Create a character style with a parent and a percentage font size.
2. Change the parent font size
Actual Results:
The child style font size does not change
Expected Results:
The child style font size should change
Reproducible: Always
User Profile Reset:
Additional Info:
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101
Firefox/54.0
--
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/20170709/43ff84fe/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list