Quantcast
Channel: TypeDrawers
Viewing all articles
Browse latest Browse all 4153

Browser OTS rejections for WOFF2 but not WOFF

$
0
0
I've been seeing Chrome and Firefox rejecting a lot of WOFF2 files lately, for OTS (OpenType Sanitiser) failures. But this is confusing, because the browser will fall back to the WOFF generated from the same source font, which sails through without a problem.

I have a test page using Bungee Shade from Google Fonts if you want to see this in action. In the case of Bungee, the sanitiser is removing one of the cmap subformat tables. Open Sans also fails this test for having a too-big kern table. Note that in both of these cases, OTS still reports the fonts as "passing" since the fonts are still valid after the modifications.

If I run the TTFs through OTS before generating the WOFFs, then everything works fine.

The original WOFF2 works fine in Edge on Windows 10, which doesn't use OTS.

Firefox shows these errors:
downloadable font: Failed to convert WOFF 2.0 font to SFNT (font-family: "TestWoff2" style:normal weight:normal stretch:normal src index:0) source: http://test.chrislewis.codes/woff2/bungee-web/BungeeShade-Regular.woff2 woff2:12:24

downloadable font: rejected by sanitizer (font-family: "TestWoff2" style:normal weight:normal stretch:normal src index:0) source: http://test.chrislewis.codes/woff2/bungee-web/BungeeShade-Regular.woff2 woff2:12:24
Anybody here know why WOFF2 gets this strict treatment but the same font in WOFF format works?

Viewing all articles
Browse latest Browse all 4153

Trending Articles