Skip to main content

Module charset

Module charset 

Source
Expand description

CFF charset support.

Structs§

Charset
Character set for mapping from glyph to string identifiers.
Format0
Charset format 0.
Format1
Charset format 1.
Format2
Charset format 2.
Iter
Iterator over the glyph and string identifier mappings in a character set.
Range1
Range struct for Charset format 1.
Range2
Range struct for Charset format 2.
RangeIter 🔒
Custom iterator for range based formats.

Enums§

CharsetKind
Predefined and custom character sets.
CustomCharset
Charset with custom glyph id to string id mappings.
IterKind 🔒

Constants§

EXPERT_CHARSET 🔒
See “Expert” charset at https://adobe-type-tools.github.io/font-tech-notes/pdfs/5176.CFF.pdf#page=47
EXPERT_SUBSET_CHARSET 🔒
See “Expert Subset” charset at https://adobe-type-tools.github.io/font-tech-notes/pdfs/5176.CFF.pdf#page=49

Traits§

CharsetRange 🔒
Trait that unifies ranges for formats 1 and 2 so that we can implement the tricky search logic once.

Functions§

glyph_id_from_ranges 🔒
next_range 🔒
string_id_from_ranges 🔒