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
All text lines in the PDF use the Regular typeface, which is embedded 3 times
Each text line should render with the correct typeface, there should be 3 distinct typefaces embedded
User Profile Reset: Yes
Version: 22.214.171.124 / 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
Created attachment 177318 [details]
"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.
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.
*** This bug has been marked as a duplicate of bug 108497 ***