Open digitarald opened 5 years ago
.g-swash {
font-family: 'NYTMag Serif Text Light Italic', "nyt-mag-serif-headline", georgia, helvetica, sans-serif;
font-style: italic;
font-weight: 300;
}
.cap-f::before {
content: '\e01C';
}
.cap-a::before {
content: '\e017';
}
.cap-v::before {
content: '\e02E';
}
<div class="rad-summary g-photoessay-specialchar">
<span class="g-swash cap-f"></span>our hundred years after enslaved
<span class="g-swash cap-a"></span>fricans were first brought to
<span class="g-swash cap-v"></span>irginia, most
<span class="g-swash cap-a"></span>mericans still don’t know the full story of slavery.</div>
https://www.compart.com/en/unicode/U+E017 https://www.compart.com/en/unicode/U+E01C https://www.compart.com/en/unicode/U+E02E which are all in the private use area plane.
I guess they are defined in the nyt-mag-serif-headline https://typeface.nyt.com/fonts/nyt-mag-serif-headline-700-normal.woff
@font-face {
font-family: "nyt-mag-serif-headline";
src: local("☺︎"), url("/fonts/nyt-mag-serif-headline-700-normal.woff") format("woff");
font-style: normal;
font-weight: 700;
}
Using http://validator.fontbureau.com/ doesn't detect any issues.
@jfkthame do you know what is happening with this font?
The font involved for the capitals is actually https://static01.nyt.com/newsgraphics/2019/07/18/mag-1619/assets/fonts/NYTMagSerifTextEXT-LightItalicWEB.woff.
Using http://validator.fontbureau.com/ doesn't detect any issues.
That just validates the WOFF packaging/compression of the font. It doesn't validate all the font data inside. For a more thorough validation, see the OpenType Sanitizer (https://github.com/khaledhosny/ots).
Sure enough, OTS reports problems:
./ots-sanitize NYTMagSerifTextEXT-LightItalicWEB.woff
ERROR at ../src/layout.cc:402 (ParseCoverageFormat2)
ERROR: Layout: bad start coverage index.
ERROR at ../src/layout.cc:1142 (ParseChainContextFormat3)
ERROR: Layout: Failed to parse backtrack coverage 0 in chain context format 3
ERROR at ../src/layout.cc:1460 (ParseChainingContextSubtable)
ERROR: Layout: Failed to parse chaining context format 3 subtable
ERROR at ../src/layout.cc:1178 (Parse)
ERROR: Layout: Failed to parse lookup subtable 5
ERROR at ../src/layout.cc:240 (ParseLookupTable)
ERROR: Layout: Failed to parse subtable 0
ERROR at ../src/layout.cc:1328 (ParseLookupListTable)
ERROR: Layout: Failed to parse lookup 2
ERROR: GSUB: Failed to parse lookup list table
ERROR at ../src/ots.cc:693 (ProcessGeneric)
ERROR: GSUB: Failed to parse table
Failed to sanitize file!
The font has broken OpenType layout tables. This is also reported in the Firefox web console when you load the page.
If you set gfx.downloadable_fonts.otl_validation : false
in about:config
, validation of these tables will be skipped and the font loads successfully. (This is the default setting on release builds, so it'll work for most users, it only fails on Nightly/Developer builds.) Nevertheless, the root of the problem is that the font resource is broken, so this should be reported to the site.
Thanks a lot. Let's contact them.
Sent an email to the partner mailing-list about this issue. Moving to sitewait.
URL: https://www.nytimes.com/interactive/2019/08/19/magazine/history-slavery-smithsonian.html?mtrref=undefined&gwh=64FB479E5853130AFEA7A7B63D9B7F15&gwt=pay
Browser / Version: Firefox 70.0 Operating System: Mac OS X 10.14 Tested Another Browser: Yes
Problem type: Design is broken Description: Broken capital letters in the title Steps to Reproduce: Some script tries to make the capitals fancy, but breaks in FF. Works in Chrome.
Browser Configuration
Console Messages:
From webcompat.com with ❤️