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

            Bug ID: 155113
           Summary: WRITER: Can't define a character style for Regular
                    font variant
           Product: LibreOffice
           Version: 7.5.2.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

LO 7.5.2.2, Fedora 38, Plasma desktop manager (Qt widgets)
This bug report is a follow-on of
https://ask.libreoffice.org/t/character-style-to-unbold/91067

A paragraph style may configure its default font as bold or italic. To
emphasize words, it is necessary to define a character style to revert to
regular variant. For the character style to be "universal", font face and size
are left untouched so that they remain in "transparent" state.

Regular is explicitly selected from the Style menu so that Writer notices we
are forcing a parameter value.

However, it looks like Writer does not take into account the manual selection
of Regular, which is equal to the initial value of the menu (although it was
explicitly selected). As a consequence, the whole font tab is considered in
"transparent state" and this style application has no effect.

This is not consistent with the management of other parameters where the
parameter is considered "modified" as soon as some action is done on it, even
if the final value is (apparently) the same as on entry.

The workaround I found is to configure the style in two steps: the first step
arbitrarily selects a "Style" and saves; the second step selects Regular and
saves. From now on, the Organizer tab displays Not xxx+normal where xxx was the
arbitrary Style selected in first step.

No sample document attached as this is a problem related with style creation.
Attaching a sample document would show success after the workaround procedure
above.

I think this behaviour is a consequence of the change in handling bold and
italic. Before this change, both attributes were manipulated through check
boxes (therefore no "regular" check box nor selection). Now the "attributes"
are handled with the Style drop-down menu in the Font tab.

And I wonder if requesting italics with Italic item (when default font is shown
as Liberation Serif) will still be valid when the same variant is named Oblique
in another font (like DejaVu Sans)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to