| Summary: | Character styles not working against the underlying paragraph style | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Kenneth Hanson <khanson679> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED NOTABUG | ||
| Severity: | normal | CC: | cno, philipz85, pjw, rb.henschel, thomas.lendo, vsfoote |
| Priority: | medium | ||
| Version: | 5.3.3.2 release | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://bugs.documentfoundation.org/show_bug.cgi?id=126546 https://bugs.documentfoundation.org/show_bug.cgi?id=127702 https://bugs.documentfoundation.org/show_bug.cgi?id=149271 https://bugs.documentfoundation.org/show_bug.cgi?id=99544 |
||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 108014 | ||
| Attachments: | sample doc | ||
|
Description
Kenneth Hanson
2017-06-13 03:42:07 UTC
Seems right that the percentage value defined in the character style should work against the value set that the paragraph style. But lets get an expert opinion. Cor, Regina, Stuart: What's your take? Created attachment 134036 [details]
sample doc
I definitely think that (working against the current paragraph style, not the default) makes more sense. But I that's a separate issue, because right now it's not even working based off the default paragraph style, but something else, based on my tests. 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. Alright, so we've confirmed that character styles do not inherit from the surrounding paragraph style. (Perhaps the title of this bug should be changed back.) I was able to update such a character style in the way you described, but ONLY when changing the font size through the Basic Fonts menu. This explains the difference in effect due to order of operations that I described. But this method of updating, even if intentional, is terribly confusing. Shouldn't percentage font sizes update automatically here just the same as elsewhere?? Also, changing the default paragraph font still has no effect, either on percentage font sizes or on the default size displayed before modifications. So back to my original question: is the "parent style" of all character styles the default paragraph style, or is it something else? I tried modifying the default paragraph style again and pressing the "Standard" button, which returned it to the setting in the Basic Fonts menu. This strongly suggests that both the paragraph and character styles are based on some third source which is only modifiable from the Basic Fonts menu. One more addition related to Regina's comment. I tried making a nested hierarchy of character styles, one with a manual font size (to put aside the issue regarding the behavior of defaults), a child style with 80% font size, and a 3rd level child also with 80% font size. Both the second and third level children had the same font size, 80% of the first level. So it looks to me that not even the part of the spec about inheriting from the parent style is being implemented properly for character styles. In contrast, nested percentage font sizes worked as expected for paragraph styles. Perhaps this is a separate bug. (In reply to Regina Henschel from comment #4) > 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. Closing this based on this. > 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. I wasnt able to reproduce this, so please file a bug report with your steps. (In reply to Kenneth Hanson from comment #5) > Alright, so we've confirmed that character styles do not inherit from the > surrounding paragraph style. (Perhaps the title of this bug should be > changed back.) Changing the bug title will only confuse the issue more, so please file a new bug with the issues you are having. > So back to my original question: is the "parent style" of all character > styles the default paragraph style, or is it something else? No it isnt the default paragraph style as character styles dont inherit from paragraph styles. Also there isnt a parent style used for all character styles similar to how it is done with paragraph styles. Character styles simply have the attributes that are assigned in them and other stuff will be inherited from the paragraph style they are applied on top of. *** Bug 140384 has been marked as a duplicate of this bug. *** |