Bug 155161 - Default instance of fonts with CFF2 table is exported blank in PDF
Summary: Default instance of fonts with CFF2 table is exported blank in PDF
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: All Linux (All)
: medium normal
Assignee: ⁨خالد حسني⁩
URL:
Whiteboard: target:7.6.0 target:7.5.4 target:24.2.0
Keywords:
: 155184 (view as bug list)
Depends on:
Blocks: Font-Rendering PDF-Export
  Show dependency treegraph
 
Reported: 2023-05-06 03:45 UTC by ⁨خالد حسني⁩
Modified: 2023-06-15 11:51 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.