Bug 146577 - Exported PDF contains incorrect embedded font typeface
Summary: Exported PDF contains incorrect embedded font typeface
Status: RESOLVED DUPLICATE of bug 108497
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.2.4.1 release
Hardware: x86-64 (AMD64) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-04 23:19 UTC by Marco Burato
Modified: 2022-01-05 19:34 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Test case (8.31 KB, application/vnd.oasis.opendocument.text)
2022-01-04 23:20 UTC, Marco Burato
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Burato 2022-01-04 23:19:39 UTC
Description:
When exporting a PDF for a document containing multiple typefaces of the same font, LibreOffice appears to always embed the Regular typeface.

For instance, if the document contains 3 lines using, respectively, the Regular, Semibold and Bold typefaces, the exported PDF contains the Regular typeface 3 times. Similarly, if 2 different typefaces are used, the PDF contains the Regular typeface 2 times.

Observed with the Open Sans font. It doesn't seem to happen with Liberation Sans. Reproduced on both Calc and Writer.

Steps to Reproduce:
1. Install the Open Sans font, if not already available (https://fonts.google.com/specimen/Open+Sans)
2. Open the attached Test.odt file
3. Export to PDF

Actual Results:
All text lines in the PDF use the Regular typeface, which is embedded 3 times

Expected Results:
Each text line should render with the correct typeface, there should be 3 distinct typefaces embedded


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 7.2.4.1 / LibreOffice Community
Build ID: 27d75539669ac387bb498e35313b970b7fe9c4f9
CPU threads: 8; OS: Mac OS X 10.16; UI render: default; VCL: osx
Locale: it-IT (it_IT.UTF-8); UI: en-US
Calc: threaded
Comment 1 Marco Burato 2022-01-04 23:20:30 UTC
Created attachment 177318 [details]
Test case
Comment 2 phv 2022-01-05 12:43:15 UTC
"Open Sans" is now a variable font family; the pdf export of variable font and SVG font is not yet supported in general (Adobe) and with LibreOffice in particular.

See bug #108497. This report will be closed as duplicate if you agree.
Comment 3 Marco Burato 2022-01-05 17:12:52 UTC
I uninstalled the variable fonts, installed the static ones and now it works as expected. So, yes, this appears to be a duplicate of the existing ticket.
Comment 4 phv 2022-01-05 19:34:07 UTC

*** This bug has been marked as a duplicate of bug 108497 ***