Closed Bug 1620788 Opened 5 years ago Closed 5 years ago

incorrect font in pdf when viewed on line, OK when pdf downloaded

Categories

(Firefox :: PDF Viewer, defect)

75 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jonathanbaron7, Unassigned)

References

()

Details

(Keywords: nightly-community)

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

Use Firefox to view a pdf on the Web. This seems to happen with all pdf files, but here is an example:
https://www.sas.upenn.edu/~baron/vita.pdf

Actual results:

PDF displays but the font is a poor substitute for the intended font. The letters are too large relative to the inter-letter spacing. But the font is wrong too.

However, if I download the same pdf file and view it with "firefox -new-window [the file]" it displays correctly.

Expected results:

It should display correctly on the Web.

I think this bug started in today's build:
75.0a1 (2020-03-07) (64-bit) for linux

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
20200307213339

(In reply to Jonathan Baron from comment #0)

PDF displays but the font is a poor substitute for the intended font.

Please attach a screenshot of the problem.

I tried a build from March 1st, then updated to the latest, and Vivaldi as well. In all cases I see what looks like mostly Times New Roman with a bit of Courier New for links.

I think this bug started in today's build:

It would help if you could find the exact regression range.
https://mozilla.github.io/mozregression/quickstart.html

Has Regression Range: --- → no
Has STR: --- → yes
Component: Untriaged → PDF Viewer

Here is the screen shot.

However, I have now discovered that this is not a problem with Firefox. Thus this bug should be closed. I will try to do that. (I can't find a place to do that just now.)

The problem is with an add-on, "Zoom page WE", which recently updated to a new version.

(I find this necessary because changes in layout.css.devPixelsPerPx affects the side panel as well as the page itself. I need something because of vision problems.)

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID

(In reply to Jonathan Baron from comment #2)

I need something because of vision problems.)

If you need to set a default zoom level for the PDF viewer,

  1. Enter about:config into the address bar.
  2. In the search bar, enter pdfjs.defaultZoomValue
  3. In the results, double-click pdfjs.defaultZoomValue and set its value to a number (don't add a % sign to it). Alternatively, you can set it to page-width, page-height, page-fit or auto (this should already be the default).
Has Regression Range: no → ---
Keywords: regression

Thanks. This might be useful. But my main problem is with ordinary web pages.

I found another add-on, "Fixed Zoom", which does exactly what I want. It just blows up the entire page by a fixed ratio (1.3 on my desktop, 1.7 on my super high-resolution laptop).

It does NOT affect pdfs, but I have no problem reading pdfs with Firefox. Firefox seems to fit page width by default, which means that the font is quite legible on a wide screen. In fact Firefox is better than other linux pdf readers (xpdf, atril, etc.) for most purposes. (For example, it does a very nice job when the pdf has comments on it. And it is much easier to use for cutting and pasting to something else.)

I don't know what Zoom Page WE was trying to do, but the new version of it made a complete mess of many different things, not just pdfs.

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

Attachment

General

Creator:
Created:
Updated:
Size: