Closed Bug 1432544 Opened 6 years ago Closed 6 years ago

Firefox 59 incorrectly renders certain fonts: bad kerning

Categories

(Core :: Graphics: Text, defect)

59 Branch
x86_64
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 1430446

People

(Reporter: aros, Unassigned)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20180118122319

Steps to reproduce:

Updated to Firefox 59 beta 3.


Actual results:

Fonts in menus and in the address bar are broken: bad kerning, strange fonts.

Other areas look unaffected: the About dialog, the preferences.

I'm running the official Firefox 59 beta 3 from here: https://ftp.mozilla.org/pub/firefox/releases/59.0b3/linux-x86_64/ on top of CentOS 7 64.
Component: Untriaged → Graphics: Text
Product: Firefox → Core
The poor spacing is probably the same issue as bug 1430446.

If there's something else wrong besides the glyph spacing (e.g. the wrong font?), we'll need more detail -- what font is supposed to be used, what is being used instead?
Summary: Broken fonts in menus and address bar / Firefox doesn't use system fonts → Broken fonts rendering in Firefox 59 vs 58
Web pages are also affected, I just didn't notice it.
As far as I can tell, the same fonts are used in both versions - it's just the kerning and gamma which are different.

I use Microsoft core fonts (Tahoma, Verdana, Aria, Times New Roman, etc) as system fonts wherever possible.
Severity: normal → major
Keywords: regression
OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Summary: Broken fonts rendering in Firefox 59 vs 58 → Firefox 59 incorrectly renders certain fonts: bad kerning and wrong gamma
This has never been an issue earlier and Firefox 59 looks like a huge regression.

This is my ~/.fonts.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <match target="font" >
  <edit mode="assign" name="lcdfilter" >
   <const>lcdlegacy</const>
  </edit>
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle" >
   <const>hintfull</const>
  </edit>
  <edit mode="assign" name="rgba" >
   <const>rgb</const>
  </edit>
 </match>
</fontconfig>

My freetype 2.4.11 library is built with this option:

#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
The patch in bug 1430446 will probably fix the spacing problem you're seeing.

I don't know about changes in gamma handling (though from the screenshot, that looks much less glaring than the spacing glitch). Maybe Lee knows of something that could have affected it?
Flags: needinfo?(lsalzman)
Discard my comment about gamma: that were two different Firefox sessions open and Google decided to use different colors for search results.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Summary: Firefox 59 incorrectly renders certain fonts: bad kerning and wrong gamma → Firefox 59 incorrectly renders certain fonts: bad kerning
Flags: needinfo?(lsalzman)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: