Closed Bug 1681934 Opened 5 years ago Closed 1 year ago

Certain typefaces not being rendered on New York Times

Categories

(Web Compatibility :: Site Reports, defect, P2)

ARM64
macOS

Tracking

(Webcompat Priority:P2, Webcompat Score:6, firefox85 wontfix, firefox104 wontfix, firefox111 wontfix, firefox141 fixed)

VERIFIED FIXED
141 Branch
Webcompat Priority P2
Webcompat Score 6
Tracking Status
firefox85 --- wontfix
firefox104 --- wontfix
firefox111 --- wontfix
firefox141 --- fixed

People

(Reporter: gcp, Assigned: skyschub)

References

(Depends on 1 open bug, )

Details

(Keywords: webcompat:platform-bug, webcompat:site-wait, Whiteboard: [webcompat:sightline])

User Story

platform:windows,mac,linux,android
impact:content-missing
configuration:rare
affects:all

Attachments

(2 files)

I get tofu on the capitals: "[I]n order to understand the brutality..."

macOS Big Sur, M1, currently Nightly. Same under Rosetta. Beta works fine.

https://www.nytimes.com/interactive/2019/08/14/magazine/slavery-capitalism.html?smid=tw-share

They have a broken font that fails the stricter validation we have enabled in Nightly/DevEdition builds only. See error messages in the web console:

downloadable font: Layout: bad start coverage index. (font-family: "NYTMag Serif Text Light Italic" style:italic weight:300 stretch:100 src index:0) source: https://www.nytimes.com/newsgraphics/2019/07/18/mag-1619/assets/fonts/NYTMagSerifTextEXT-LightItalicWEB.woff

etc.

Probably the font was subsetted using a tool that just removed glyphs but didn't make the necessary changes to the OpenType Layout tables to match the reduced glyph repertoire.

On Beta/Release, we just drop the broken layout tables but still allow the font to load, so normal users won't see this (although if the font were used for content that actually depended on the OpenType features, they wouldn't work).

If you set gfx.downloadable_fonts.otl_validation to false and reload the page, the font should work.

The correct fix is for the NYT to deploy valid font resources.

(I'm sure we have this on file somewhere already.)

Keywords: dupeme
Component: Layout: Text and Fonts → Desktop
Product: Core → Web Compatibility
Attached image text-garbage.png —

I have contacted NYTimes through the partner mailing-list.

The issue still occurs.
https://prnt.sc/vx8XyUTSasZn

Tested with:
Browser / Version: Firefox Nightly 104.0a1 (2022-06-28)
Operating System: Windows 10 Pro

The issue is still reproducible on the latest Nightly.
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1767143

Tested on:
Operating system: Windows 10
Browser/Version: Nightly 111.0a1 (2023-01-19) / Chrome 109.0.5414.75

Note: Not reproducible on Chrome.

Assignee: nobody → dschubert
Status: NEW → ASSIGNED
Severity: -- → S4
Status: ASSIGNED → NEW
User Story: (updated)
Depends on: 1834547
Priority: -- → P2
Whiteboard: [webcompat:sightline]
Webcompat Priority: --- → P2
Webcompat Score: --- → 6
Depends on: 1972870

This means that if webfont validation detects errors in OTL tables, we'll just discard
the bad layout table(s) but continue to try and use the font.

The gfx.downloadable_fonts.otl_validation pref is converted from a boolean to an integer,
allowing a choice among three behaviors:

0 - OTL tables are passed through with no validation (default in Beta/Release builds)
(same as the former 'false' setting)
1 - OTL tables are validated, reporting errors and discarding the table if broken,
but the font resource may still be used (default in Nightly/Developer Edition)
("soft validation" for a better user experience in pre-release builds)
2 - OTL table validation errors cause the font resource to be rejected
(same as the former 'true' setting, can result in unexpected font breakage)

Pushed by jkew@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f21faf9b8c2e https://hg.mozilla.org/integration/autoland/rev/4d8c8d43a558 Use the SANITIZE_SOFT processing option for OpenType Layout (OTL) tables in pre-release builds. r=gfx-reviewers,lsalzman
Pushed by smolnar@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/656709889756 https://hg.mozilla.org/integration/autoland/rev/b031d63fe87a Mark test /largest-contentful-paint/web-font-styled-text-resize-swap-smaller.html as passing.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch

Verified and not reproducible

Browser : Firefox 140.0 - RC
OS: macOS Sequoia 15.5

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: