Documentation
¶
Overview ¶
Package coverage reads and writes OpenType "Coverage Tables". https://docs.microsoft.com/en-us/typography/opentype/spec/chapter2#coverage-table
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
Set is a coverage table, but with the coverage indices omitted.
func ReadSet ¶
ReadSet reads a coverage table from a parser. This function allows for some duplicate glyphs to be included. This is forbidden by the spec, but occurs in some widely used fonts.
type Table ¶
Table represents an OpenType "Coverage Table". A Coverage table defines a unique index value, the Coverage Index, for each covered glyph. The Coverage Indexes are sequential, from 0 to the number of covered glyphs minus 1. The map from glyph ID to Coverage Index must be strictly monotonic.
func (Table) EncodeLen ¶
EncodeLen returns the number of bytes in the binary representation of the coverage table.