folkertdev / elm-cff / Charset

The Charset maps glyph identifiers to glyph names


type Charset

The Charset maps glyph identifiers to string identifiers.

The string identifiers can then be used as indices into the string INDEX to get the actual name of a glyph.

decode : { offset : Basics.Int, numberOfGlyphs : Basics.Int } -> Bytes.Decode.Decoder Charset

Decode a Charset. The offset is (a)bused to indicate use of a predefined charset

When a predefined charset is used the charset is not encoded.

glyphNameIdentifier : Basics.Int -> Charset -> Basics.Int

Find the string identifier for a glyph identifier.