Skip to main content

Module charstring

Module charstring 

Source
Expand description

Type 1 charstring interpreter.

Decrypts and executes Type 1 charstring opcodes to produce path segments and glyph width information.

Structs§

CharstringResult
Result of executing a charstring: the glyph path and advance width.

Functions§

decrypt_charstring
Decrypt a charstring using the Type 1 charstring cipher (R=4330). Skips the first len_iv random bytes.
execute_charstring
Execute a Type 1 charstring and produce path segments + width.
execute_charstring_ex
Execute a Type 1 charstring with optional charstring lookup for seac support.
execute_charstring_mm
Execute a Type 1 charstring with Multiple Master weight vector support.
execute_charstring_with_offset
Execute a charstring for seac (accent composition), applying an offset.
execute_charstring_with_offset_mm
Execute a charstring for seac with MM weight vector support.

Type Aliases§

CharstringLookup
Charstring lookup function for seac composite character support. Maps glyph name (bytes) to encrypted charstring bytes.