foliojs / pdfkit

A JavaScript PDF generation library for Node and the browser
http://pdfkit.org/
MIT License
9.87k stars 1.15k forks source link

Custom font rendered differently in chrome #840

Open dionisisZyg opened 6 years ago

dionisisZyg commented 6 years ago

Hello,

I created a pdf using a custom otf font. The pdf generated is ok if i open it with adobe acrobat reader but the font is not applied if i open the file with the google chrome built in pdf viewer. test_file.pdf Are any options available for this case?

thanks.

jdoubek commented 5 years ago

I'm seeing this on multiple fonts. In Chrome, a sans-serif font is substituted, but it appears to use the metrics from the embedded fonts. In Mac Preview or Safari or in Finder preview window, the glyphs are wrong too. If you open the test_file.pdf file in the original report, it shows the same behavior in Safari/Preview.

Any idea on when this will get addressed?

Thanks