New issue
Advanced search Search tips

Issue 782147 link

Starred by 5 users

Issue metadata

Status: Untriaged
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Duplicate font embedding in PDF output on macOS

Reported by murak...@vivliostyle.com, Nov 7 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36

Steps to reproduce the problem:
1. open the sample (attached test-arial.html)
2. Print->Save as PDF, with options: OFF "Headers and footers"
3. open the output PDF file in a text editor
4. Find the objects with "/Type /FontDescriptor"

What is the expected behavior?
Only one font descriptor object ("/Type /FontDescriptor") with "/FontName /ArialMT" is found, because this sample (test-arial.html) uses only one regular Arial font (with 3 different sizes).

What went wrong?
There are 3 font descriptor objects with "/FontName /ArialMT", containing same (duplicate) /FontFile2 stream object.
It seems duplicate font embedding occurs for each font size (this sample uses 3 font sizes and causes 3 duplicate font embedding).

Did this work before? N/A 

Chrome version: 62.0.3202.89  Channel: stable
OS Version: OS X 10.12.6
Flash Version: 

I tested this with Chrome for Mac stable (62.0.3202.75) and Canary (64.0.3260.0) versions and found no difference.
However, I found this problem does not occur on Chrome versions for Windows and Linux.
 
test-arial.html
285 bytes View Download
test-arial_ChromeMac.pdf
52.7 KB Download
test-arial_ChromeWin.pdf
24.1 KB Download
test-arial_ChromeLinux.pdf
14.6 KB Download
Components: Internals>Plugins>PDF
Labels: Needs-Triage-M62
Components: -Internals>Plugins>PDF Internals>Skia>PDF
Labels: M-64
Status: Untriaged (was: Unconfirmed)
Able to reproduce this issue on Mac 10.12.6 using chrome reported version #62.0.3202.89 and latest canary #64.0.3261.0. Issue is specific to OS-mac.
This is a non-regression issue as it is observed from M50 old builds. 
Hence, marking it as untriaged to get more inputs from dev team.

Thanks...!!

Sign in to add a comment