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

            Bug ID: 166357
           Summary: LibreOffice Writer and Impress stores and reads wrong
                    font weights
           Product: LibreOffice
           Version: 24.8.3.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
Both “LibreOffice Writer” and “LibreOffice Impress” stores wrong font
weight values. The saved document containing a font with all acceptable
font weights (“Thin” (100); “Ultra Light, Extra Light” (200); “Light”
(300); “Regular, Normal” (400); “Medium” (500); “Semi Bold, Demi Bold”
(600); “Bold” (700); “Extra Bold, Ultra Bold” (800); “Heavy, Black”
(900)) has wrong weight values in the “content.xml” file.

The wrong values are for three font weights:
- “Ultra Light, Extra Light” (200): fo:font-weight="150";
- “Light” (300): fo:font-weight="250";
- “Medium” (500): fo:font-weight="normal".

So there is no surprise that some of the font weight information is
lost on reopening the document.

I have tried both the ODP or ODT file to unzip and replace these wrong
values with the correct ones in the “content.xml” file. Zipped them and
renamed. No luck. The fonts weights are not the same as they should be.


Steps to Reproduce:
1. For writing text, use font which besides regular weight has at least Medium
font weight.
2. Change some characters to Medium weight.
3. Save, close and open document.


Actual Results:
The Medium font weight is changed to Regular weight.


Expected Results:
The document should look as it was before closing.



Reproducible: Always


User Profile Reset: No

Additional Info:
Creates document with wrong weight values.

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

Reply via email to