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: Not sure on the earliest version affected.
Created attachment 197619 [details] Choosing Medium font weight.
Created attachment 197620 [details] Before closing the document. One font with 9 weights.
Created attachment 197621 [details] The Medium weight has been lost.
Look to be on Linux, so dupe to bug 152396 On Windows limited to GDI limits to handling of R/B/I/BI (bug 35538) *** This bug has been marked as a duplicate of bug 152396 ***