Linux font rendering glyph size error

RESOLVED INVALID

Status

()

Core
Graphics: Text
RESOLVED INVALID
3 years ago
2 years ago

People

(Reporter: Jethro Beekman, Unassigned)

Tracking

Trunk
Unspecified
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(5 attachments)

(Reporter)

Description

3 years ago
Created attachment 8654676 [details]
test.html

Certain fonts/sizes get rendered incorrectly on certain distributions of Linux. This mostly happens when rendering PDFs using pdf.js that were generated using LaTeX. See https://github.com/mozilla/pdf.js/issues/2594 for more information.

I have extracted the font from a PDF file with a rendering error (as converted to OpenType using pdf.js) and put it in a small test file attached. I will attach example renderings in the next few comments.

Distributions expected to be affected:
* Most versions of Ubuntu Linux
* Arch Linux with infinality-patched freetype/fontconfig
(Reporter)

Comment 1

3 years ago
Created attachment 8654677 [details]
Firefox 40.0.3 and Thunderbird 38.2.0 on Ubuntu 14.04

This is an example of an incorrect rendering.
(Reporter)

Comment 2

3 years ago
Created attachment 8654678 [details]
Firefox 40.0.2 on Windows Server 2008 R2

This is an example of a correct rendering. This screenshot was taken over remote desktop.
(Reporter)

Comment 3

3 years ago
Created attachment 8654679 [details]
Chrome 44.0.2403.157 on Mac OS X 10.10.2

This is an example of a correct rendering. This screenshot was taken on a high DPI display, hence the 2x zoom.
(Reporter)

Comment 4

3 years ago
Created attachment 8654680 [details]
CMEX10.pfb

This is the PS font extracted from the PDF. The 'r' character displays the square root symbol.
Thanks for filing this bug report, Jethro. Could you please revise the summary to something which more clearly summarizes the bug?
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Bug_writing_guidelines#Writing_a_clear_summary

I don't have access to my Ubuntu machine right now but can try reproducing this tomorrow when I'm back in the office. In the meantime, it would help to know if this reproduces with any previous versions of Firefox or Thunderbird. That will help narrow down if this is a regression or if it's just never worked correctly. You'll find our past releases at http://archive.mozilla.org/pub/firefox/releases/ (replace /firefox/ with /thunderbird/ for Thunderbird releases). It would also be useful to know if this reproduces in any other browser under Ubuntu 14.04.

Thanks
(Reporter)

Comment 6

3 years ago
I have personally confirmed that the bug exists in Firefox 33 (Ubuntu 14.04). In the GitHub issue linked in my first post, others have noted problems in Firefox 18 (OS unknown), Firefox 22 (Ubuntu 12.04), Firefox 33 (Debian Jessie) and others.
(Reporter)

Updated

3 years ago
Summary: Font rendering error → Linux font rendering error
(Reporter)

Updated

3 years ago
Summary: Linux font rendering error → Linux font rendering glyph size error

Comment 7

3 years ago
Google Chrome is also affected, so it appears to be a Linux bug.
See https://github.com/mozilla/pdf.js/issues/2594#issuecomment-136298814
Thanks for the update Felix. I'm marking this bug as INVALID based on your comment. Jethro, feel free to reopen this bug report if you find evidence that this is a bug in Firefox.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → INVALID
Version: 40 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.