After processing a TrueType font with fontmin --text, the output can’t be loaded as a web font in Firefox nightly. This is because the output fails the validation enabled by the gfx.downloadable_fonts.otl_validation preference, which is true by default in Firefox nightly. This can also be reproduced using the standalone OpenType Sanitizer project on which Firefox’s validation is based.
Process the font with fontmin, and demonstrate that the result fails sanitization.
$ ./cli.js --text abc SourceSans3-Bold.ttf > out.ttf
$ ots-sanitize out.ttf sanitized.ttf
ERROR at ../src/layout.cc:380 (ParseCoverageFormat2)
ERROR: Layout: bad range count: 8
ERROR at ../src/gpos.cc:631 (ParseMarkToAttachmentSubtables)
ERROR: GPOS: Failed to parse converge 1 table
ERROR at ../src/layout.cc:1178 (Parse)
ERROR: Layout: Failed to parse lookup subtable 3
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 0
ERROR: GPOS: Failed to parse lookup list table
ERROR at ../src/ots.cc:711 (ProcessGeneric)
ERROR: GPOS: Failed to parse table
Failed to sanitize file!
Alternatively, write an HTML file that uses the output font and view it in Firefox nightly. The output font is not displayed, and a corresponding set of errors shows up in the browser console.
After processing a TrueType font with
fontmin --text
, the output can’t be loaded as a web font in Firefox nightly. This is because the output fails the validation enabled by the gfx.downloadable_fonts.otl_validation preference, which is true by default in Firefox nightly. This can also be reproduced using the standalone OpenType Sanitizer project on which Firefox’s validation is based.Reproduction steps
Install OpenType Sanitizer.
Downgrade
get-stdin
andmeow
infontmin
to work around #97.Get a font, and demonstrate that it passes sanitization.
Process the font with
fontmin
, and demonstrate that the result fails sanitization.Alternatively, write an HTML file that uses the output font and view it in Firefox nightly. The output font is not displayed, and a corresponding set of errors shows up in the browser console.