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.
Created attachment 200542 [details] Document before saving
Created attachment 200543 [details] The document saved and opened
Please, where is the sample file? Please test in safe mode, Menu/Help/Restart in Safe Mode Please paste here the information on Menu/Help/About LibreOffice (There is an icon to copy)
$ ./soffice --version LibreOffice 25.2.2.2 7370d4be9e3cf6031a51beef54ff3bda878e3fac Version: 25.2.2.2 (X86_64) / LibreOffice Community Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac CPU threads: 4; OS: Linux 6.11; UI render: default; VCL: gtk3 Locale: lv-LV (lv_LV.utf8); UI: en-US Calc: threaded Safe-mode gives the same result.
Created attachment 200549 [details] PDF exported from newly created document.
Created attachment 200550 [details] PDF exported from re-opened document.
Created attachment 200551 [details] Saved example.
Created attachment 200552 [details] Saved example (safe mode)
LibreOffice 7.6.2.1 has already this bug. Not sure which version is earliest.
*** This bug has been marked as a duplicate of bug 35538 ***