Apache OpenOffice (AOO) Bugzilla – Issue 86140
style copy via Template Organizer does not copy Font type and weight
Last modified: 2017-05-20 11:19:52 UTC
Copying a text style copies the font size but not the font (arial) or weight (bold). See StylCopy.odt
Created attachment 51538 [details] Result of applying copied style, explained.
Created attachment 51539 [details] Template from which style was copied
MRU->OS: open attached template. Via Template Organizer copy the style "Titre 3" from the template into a new document -> Style has font "Times new Roman" instead of Arial and also the "Bold" attribute has been forgotten by the copy process. Maybe the attribute have not been copied because they were inherited from the parent styles?
As can be seen in the paragraph style dialog of the template document the style "Titre 3" contains a font size of 14pt and top/bottom paragraph spacing. The organizer does not and should not copy values inherited from other styles.
'The organizer does not and should not copy values inherited from other styles.' * Is this specified in the documentation? * So, the size (14) was copied because it was not inherited from Titre2? * This behaviour conflicts with what most users expect from a 'copy' operation --ie, a copy should be identical.
->tab: I can't see your problem. The style contains three attributes. The new style contains the same three attributes, too. From my point of view this is an exact copy. It's in the nature of styles that they inherit attributes from their parents and from the document's default settings. The first page of the style dialog shows the name of the parent style and the values that are defined in this style. All other dialog pages show the resulting attributes. A "deep" copy in the organizer doesn't make sense as it would break the style feature.
os writes: The style contains three attributes. The new style contains the same three attributes, too. From my point of view this is an exact copy. **The original specifies 'three attributes': Font: arial; typeface: bold; size: 14pt. The copy has, of course the same 'three attributes', but two have different values: Font: Times New Roman; typeface: regular; only the size is copied. You call that an 'exact copy'? Semantics aside, I copy a style because I like its look --say, arial bold; why should a 'Titre3' in DocumentB look different from a 'Titre3' in DocumentA? Does not consistency require that a style look the same everywhere --within a document, and from one document to another? (Of course, I can edit the copy of Titre3 and make it different from the original, but that's another matter.) Why is only the size copied? 'The first page of the style dialog shows the name of the parent style and the values that are defined in this style. All other dialog pages show the resulting attributes.' **What do you mean by 'first' and 'other dialog pages'? Are you referring to tabs like 'Organizer', 'font', 'tabs'?
->tab: Styles are hierarchical definitions. The actual setting applied by a style is the result of the settings of the style, it's parents and document or application default settings. In case of your template the setting of the font name comes from the application defaults. If I open your template document here I the font is Arial. That's my setting here. To see the style dialog put the cursor into a paragraph that uses the Style "Titre 3" and call "Edit paragraph style" from the context menu or open the Stylist, select the style and call Edit from the context menu there.
os: 0: 'The actual setting applied by a style is the result of the settings of the style, its parent...' Sounds confusing to me. In the end, which settings are inherited, and which ones can be set anew? (Back to my question: Why is only the size copied?) Obviously, 'Linked with' should not mean 'identical to'. I set the font to xyz, why, and when, should it change to 'your setting' Arial? Let me attempt to answer my own question: If I leave a field (say, Font) blank, that means I want to retain the 'Linked' font. That would make sense. But it does not work that way --I tried it. 1: 'To see the style dialog...' I know how to modify a style. Copying a style was supposed to save me some work...
Reset assigne to the default "issues@openoffice.apache.org".