Bug 155161

Summary: Default instance of fonts with CFF2 table is exported blank in PDF
Product: LibreOffice Reporter: ⁨خالد حسني⁩ <khaled>
Component: Printing and PDF exportAssignee: ⁨خالد حسني⁩ <khaled>
Status: RESOLVED FIXED    
Severity: normal CC: Ben.Engbers
Priority: medium    
Version: 7.5.0.0 alpha0+   
Hardware: All   
OS: Linux (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=130149
https://bugs.documentfoundation.org/show_bug.cgi?id=108497
Whiteboard: target:7.6.0 target:7.5.4 target:24.2.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 71732, 103378    

Description ⁨خالد حسني⁩ 2023-05-06 03:45:50 UTC
See https://bugs.documentfoundation.org/show_bug.cgi?id=130149#c34 and subsequent comments. I suspect that because this is the default instance, we are not treating it as variable font (probably because FontConfig is not reporting any variation settings for it). Anyway a font with CFF2 even if not variable should go through the variable fonts path because it can’t otherwise be exported to PDF.
Comment 1 ⁨خالد حسني⁩ 2023-05-08 11:31:10 UTC
*** Bug 155184 has been marked as a duplicate of this bug. ***
Comment 2 Ben.Engbers@Be-Logical.nl 2023-05-08 15:08:44 UTC
After a sudo dnf update I am now using LO 7.5.3.2

Only regular fonts and Japanese BOLD are printed or exproted to PDF
Comment 3 Commit Notification 2023-05-08 16:10:34 UTC
Khaled Hosny committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/7ea34aa61f1c669710ed93e8e5cf2d19b452a371

tdf#155161: Always embed fonts with CFF2 table as PDF Type 3 fonts

It will be available in 7.6.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2023-05-08 20:24:10 UTC
Khaled Hosny committed a patch related to this issue.
It has been pushed to "libreoffice-7-5":

https://git.libreoffice.org/core/commit/79250a55589007930278e3fa59ccdf24c6ff8ea6

tdf#155161: Always embed fonts with CFF2 table as PDF Type 3 fonts

It will be available in 7.5.4.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2023-06-15 11:51:29 UTC
Khaled Hosny committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/198a1afe4d4c3c57a0cf6dc69c2494a2b9119751

tdf#155161: Add test

It will be available in 24.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.