Description: I created a document with LibreOffice 7.0.4.2, embedded the fonts while saving the document and than opened it with LibreOffice 6.4.6.2 I uploaded here the screenshots for comparison: https://imgur.com/a/ybIhfu7 As you can see the header looks on both LibreOffice versions different even that the same font and size is selected Steps to Reproduce: 1. Create a document with a header on LibreOffice7 2. Save document with embedded fonts to make sure we have all the necessary data in the document 3. Open the document with LibreOffice 6 Actual Results: Document looks different on LibreOffice 6 and LibreOffice 7, see https://imgur.com/a/ybIhfu7 Expected Results: I would expect that the document looks the same on LibreOffice 6 and Libre Office 7 Reproducible: Always User Profile Reset: No Additional Info: Version: 7.0.4.2 Build ID: 00(Build:2) CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3 Locale: de-DE (en_US.UTF-8); UI: en-US Debian package version: 1:7.0.4-3 Calc: threaded Version: 6.4.6.2 Build-ID: 1:6.4.6-0ubuntu0.20.04.1 CPU-Threads: 4; BS: Linux 5.4; UI-Render: Standard; VCL: gtk3; Gebietsschema: de-DE (de_DE.UTF-8); UI-Sprache: de-DE Calc: threaded
Created attachment 169274 [details] Screenshot LibreOffice6 Attached a screenshot how it looks on LibreOffice 6
Created attachment 169275 [details] Screenshot LibreOffice7 Added a screenshot how it looks on LibreOffice 7
Created attachment 169276 [details] Example document That's the odt document which I tested and from which I created the screenshots
Please notice that the LibreOffice 6 screen clip shows the font "Open Sans Light" that is not embedded in the ODT archive. So, if not installed to system--that text run in the MT2 header span will receive a fallback font assignment. Locate and install Open Sans Light to the system/vm running LO 6.4.6.2, you should have similar results to the source system it was generated from.
Thanks for the hint. I enabled "Embed fonts in the document" in the documents properties. Should this way all necessary fonts be stored directly in the document? I thought this option exist exactly for the purpose to avoid the problem of missing fonts on other systems.
Created attachment 169309 [details] embedded fonts of sample ODF, no "OpenSansLight1" of Header style (In reply to Björn from comment #5) > Thanks for the hint. I enabled "Embed fonts in the document" in the > documents properties. Should this way all necessary fonts be stored directly > in the document? I thought this option exist exactly for the purpose to > avoid the problem of missing fonts on other systems. Well, the document had embedded fonts just not the "Open Sans Light" of the active text cursor focused in the Header. Seems to be a custom template with Header paragraph "MP2" assigned "OpenSansLight1" font. Clearly the system with LO 7 either has that installed or has font fallback handling (perhaps to the DejaVu Sans of the embedded fonts). But the LO 6 loaded system does not. Kind of seems an os/DE font management issue.
(In reply to V Stuart Foote from comment #6) > > Kind of seems an os/DE font management issue. Did some font changes on Windows builds, and a 'Noto Sans Light' is a pretty good match to font metric of the screen clip of original created on 7.0.4.2
> Well, the document had embedded fonts just not the "Open Sans Light" of the active text cursor focused in the Header. Seems to be a custom template with Header paragraph "MP2" assigned "OpenSansLight1" font. Does this mean that there is a bug in how LibreOffice 7 embed fonts? Because as a user I wonder what else I could do. I created the document, tigged the "Embed fonts" checkboxes (see last screenshot here: https://imgur.com/a/ybIhfu7) and saved it. Or am I doing something wrong as an end user. Do I need to do anything different to embed the fonts correctly?
Some additional information. The font "Open Sans Light" was installed manually in the users ~/.fonts directory on the system where I created the document. Might this be the reason that LibreOffice doesn't embed the font correctly? The font is a *.ttf file.
(In reply to Björn from comment #8) > > Well, the document had embedded fonts just not the "Open Sans Light" of the active text cursor focused in the Header. Seems to be a custom template with Header paragraph "MP2" assigned "OpenSansLight1" font. > > Does this mean that there is a bug in how LibreOffice 7 embed fonts? > > Because as a user I wonder what else I could do. I created the document, > tigged the "Embed fonts" checkboxes (see last screenshot here: > https://imgur.com/a/ybIhfu7) and saved it. > > Or am I doing something wrong as an end user. Do I need to do anything > different to embed the fonts correctly? Well it would be bad if your os/DE does a font fallback (DejaVu Sans for Open Sans Light) and embeds the wrong font. But the template for your sample document attachment 169276 [details] clearly lists the Paragraph style for the Header as using Open Sans Light. Is Open Sans Light otherwise available on the source (LO 7) system, and on the target (LO 6) system?
(In reply to Björn from comment #9) > Some additional information. The font "Open Sans Light" was installed > manually in the users ~/.fonts directory on the system where I created the > document. Might this be the reason that LibreOffice doesn't embed the font > correctly? The font is a *.ttf file. I suppose it is a possible issue. But, fontconfig on Linux is not in my comfort zone. Anyone?
Hello Björn, a new major release of LibreOffice is available since this bug was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Reproduced in LO 7.4+ Windows. Open Sans Light not embedded even if installed.
I retested today and I am not fully clear on this. Both with LO 7.3 and 24.2 I could embed Open Sans Light in Linux and open it in Windows, where I do not have it installed - with test document mixed with fonts OTOH, test document with only Open Sans Light would show it missing.