New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 673099 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Fonts in PDF in Linux are not rendered correctly

Reported by nech...@gmail.com, Dec 10 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.21 Safari/537.36

Example URL:
http://kfy.zcu.cz/export/sites/kfy/dokumenty/FP1/UC104_4.pdf

Steps to reproduce the problem:
1. Install Debian testing
Install ttf-mscorefonts-installer
Install ttf-liberation
2. Go to http://kfy.zcu.cz/export/sites/kfy/dokumenty/FP1/UC104_4.pdf
3. See garbage (fo1.png)

What is the expected behavior?
See properly rendered PDF as in Windows (fo2.png).

What went wrong?
Fonts were rendered incorrectly.

Does it occur on multiple sites: Yes

Is it a problem with a plugin? Yes pdfium

Did this work before? No 

Does this work in other browsers? Yes

Chrome version: 56.0.2924.21  Channel: beta
OS Version: 
Flash Version: 

I had this issues for years, in Fedora, now on Debian. I always downloaded PDF and read it in external viewer. PDF.js does better but it has other issues: it picks "wrong" fonts.
 
fo1.png
332 KB View Download
fo2.png
274 KB View Download

Comment 1 by ajha@chromium.org, Dec 12 2016

Labels: M-56

Comment 2 by kochi@chromium.org, Dec 12 2016

Components: -Blink Internals>Plugins>PDF
Routing to PDF team to triage.
Cc: tkonch...@chromium.org
Labels: TE-NeedsTriageHelp
Tested the same on Linux Ubuntu 14.04 chrome version 56.0.2924.21 - PDF rendered fine
Owner: npm@chromium.org
Status: Assigned (was: Unconfirmed)
Looks like a font substitution issue, routing to npm@ to take a look.

Comment 5 by nech...@gmail.com, Dec 14 2016

I'm sorry, it was my fault. Please close the issue.

Attached is my /etc/fonts/local.conf where previously the commented block was uncommented. With its current contents, the PDF renders fine.
local.conf
1.8 KB Download

Comment 6 by nech...@gmail.com, Dec 14 2016

serif, sans-serif and monospace are DejaVu fonts. It worked fine fonts in HTML but apparently not for fonts in PDF.

Comment 7 by kochi@chromium.org, Dec 14 2016

Status: WontFix (was: Assigned)
Closing the issue per the reporter's request.

Sign in to add a comment