Bug 140003 - Open Sans Light not embedded even if installed
Summary: Open Sans Light not embedded even if installed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Fonts-Embedded
  Show dependency treegraph
 
Reported: 2021-01-29 15:47 UTC by Björn
Modified: 2022-02-04 13:28 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments
Screenshot LibreOffice6 (31.16 KB, image/png)
2021-01-29 15:51 UTC, Björn
Details
Screenshot LibreOffice7 (26.09 KB, image/png)
2021-01-29 15:51 UTC, Björn
Details
Example document (1.70 MB, application/vnd.oasis.opendocument.text)
2021-01-29 15:53 UTC, Björn
Details
embedded fonts of sample ODF, no "OpenSansLight1" of Header style (28.18 KB, image/png)
2021-01-30 17:43 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn 2021-01-29 15:47:04 UTC
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
Comment 1 Björn 2021-01-29 15:51:04 UTC
Created attachment 169274 [details]
Screenshot LibreOffice6

Attached a screenshot how it looks on LibreOffice 6
Comment 2 Björn 2021-01-29 15:51:43 UTC
Created attachment 169275 [details]
Screenshot LibreOffice7

Added a screenshot how it looks on LibreOffice 7
Comment 3 Björn 2021-01-29 15:53:30 UTC
Created attachment 169276 [details]
Example document

That's the odt document which I tested and from which I created the screenshots
Comment 4 V Stuart Foote 2021-01-29 21:49:00 UTC
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.
Comment 5 Björn 2021-01-30 15:41:15 UTC Comment hidden (obsolete)
Comment 6 V Stuart Foote 2021-01-30 17:43:24 UTC
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.
Comment 7 V Stuart Foote 2021-01-30 17:58:46 UTC
(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
Comment 8 Björn 2021-02-01 20:00:28 UTC Comment hidden (obsolete)
Comment 9 Björn 2021-02-01 20:05:14 UTC
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.
Comment 10 V Stuart Foote 2021-02-01 22:18:53 UTC
(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?
Comment 11 V Stuart Foote 2021-02-01 22:20:29 UTC Comment hidden (obsolete)
Comment 12 Dieter 2022-02-04 12:01:18 UTC Comment hidden (obsolete)
Comment 13 Timur 2022-02-04 13:27:02 UTC
Reproduced in LO 7.4+ Windows. Open Sans Light not embedded even if installed.