Closed Bug 1714535 Opened 3 years ago Closed 3 years ago

PCF font rendering is too tiny after Firefox 89 update

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 89
defect

Tracking

()

RESOLVED DUPLICATE of bug 1714282

People

(Reporter: a0939712328, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

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

Steps to reproduce:

  1. Have a Linux system with legacy PCF font files (Ex. timB08.pcf.gz aka. Times)
  2. Browse a website that uses PCF font names (Ex. https://en.wikipedia.org/wiki/Wikipedia:Typography#Legacy_font_names)
  3. Observe the font size.

Actual results:

The text is significantly smaller than in Firefox 88.

Expected results:

The text size is the same as Firefox 88.

Using mozregression, I figure that the following changeset introduced the issue.
https://hg.mozilla.org/integration/autoland/rev/6f7a64d3796bf8acb2421721d8a6b8b94db2a067

A temporary workaround is to remove *.pcf(.gz) font files from the system. This way, Firefox always finds the TTF fonts instead (might consider making it prefer TTF fonts over PCF fonts as well?)

Can reproduce the issue here (voidlinux, updated to FF89 yesterday, User agent "Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0"). On the example page provided, the three legacy fonts "Helvetica", "Times" and "Courier" are all rendered incredibly small.

Can also confirm that the workaround -- removing the *.pcf.gz font files -- worked for me (after restarting firefox).

Component: Untriaged → Layout: Text and Fonts
Flags: needinfo?(emilio)
Product: Firefox → Core
Regressed by: 1704466
Has Regression Range: --- → yes
Keywords: regression

Does setting gfx.e10s.font-list.shared=false and restarting Firefox improve the behavior here?

Flags: needinfo?(a0939712328)

(I think this is really a regression from that work, which was masked by a change of mine that probably reordered the fontconfig faces in just the right way)

See Also: → 1714282

(In reply to Emilio Cobos Álvarez (:emilio) from comment #4)

Does setting gfx.e10s.font-list.shared=false and restarting Firefox improve the behavior here?

The text size is back to normal. In fact, zoom level now affects the text size as well, indicating that it might be using the TTF ones now instead.

Flags: needinfo?(a0939712328)

Great, so that means that the root cause of the issue here is that the shared font list doesn't deal correctly with bitmap fonts. Let's track this in bug 1714282.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(emilio)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: