Open Bug 1738670 Opened 3 years ago Updated 3 years ago

Variable fonts: Source Han Sans VF cannot be embeded in PDF generated by built-in PDF printer

Categories

(Core :: Printing: Output, defect)

Firefox 93
Unspecified
Windows 10
defect

Tracking

()

People

(Reporter: butameron, Unassigned)

Details

Attachments

(1 file)

13.82 KB, application/x-zip-compressed
Details
Attached file test.zip

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36

Steps to reproduce:

  1. Download Source Han Serif version 2.000R (Variable OTF/TTF/OTC/WOFF2)
    https://github.com/adobe-fonts/source-han-serif/releases/tag/2.000R

  2. Install SourceHanSerif-VF.otf.ttc to Windows 10

  3. Open the following test.html in attached test.zip.

  4. See font tab of dev console to confirm that "Source Han Serif VF" is used .

  5. print via built-in PDF printer "PDF に保存" (in English, "Print To PDF"?)

Actual results:

PDF file saved by Firefox built-in PDF printer doesn't show any "Source Han Serif VF" character in Adobe Acrobat. it seems that the printer couldn't embed font.

The output PDF file is attached.

Tested on Windows 10 Pro 64bit Japanese
Version 21H1 (OS build 19043.1288)

Expected results:

"Source Han Serif VF" font is embeded in output PDF file.

Component: Untriaged → Printing: Output
OS: Unspecified → Windows 10
Product: Firefox → Core

The severity field is not set for this bug.
:TYLin, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(aethanyc)

I can reproduce this bug. The printed PDF file are empty. However, if I remove font-family: "Source Han Serif VF", it printed just fine.

Jonathan, do you know if this bug is related to font or pdf.js?

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(aethanyc) → needinfo?(jfkthame)

Does it work better if you use the TTF-based version of the variation font collection (SourceHanSerif-VF.ttf.ttc, rather than ....otf.ttc)? Note that the download page at https://github.com/adobe-fonts/source-han-serif/releases/tag/2.000R explicitly warns about using the CFF2-based version (.otf.ttc) on Windows:

⚠️ WARNING: Currently Windows 10 and Windows 11 do not support CFF2 variable fonts. Please use the TTF variable instead. ⚠️

This matches my experience: the .otf.ttc font is unreliable on my Win10 system, but the .ttf.ttc version seems to work OK (including embedding in a PDF).

Flags: needinfo?(jfkthame)
Flags: needinfo?(butameron)

As far as my experience go, every .ttf o .woff2 variable font is printed, but flattened on its default instance. On the other hand, .otf variable fonts are not printed at all.
I run Firefox 95.02 on Windows Pro 10

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE.

For more information, please visit auto_nag documentation.

Flags: needinfo?(butameron)

What information was needed?

(In reply to butameron from comment #6)

What information was needed?

See the question in comment 3 above. Thanks!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: