outline_convert.convert

outline_convert

convert(manifest, read) -> bytes, stats

Merge a manifest's fonts into an outline table

read(path) answers a file's bytes, or nil and an error; the manifest's paths reach it as written. The module's own block describes the manifest.

The stats are encode's, with four fields added: holders, a map of codepoint to the name of the source the first face took it from; notice, the notice's text; dead_rules, the rules dropped as never fitting; and gids, a map a face of the first source's glyph indices to the table's ids, for the glyphs the table holds.

Nil and an error for a file read does not give, a digest that differs, a font ttf refuses, a glyph that cannot be read, a GSUB lookup it cannot express, or what encode refuses.