Skip to main content

Module type1

Module type1 

Source
Expand description

Type1 fonts.

Structsยง

CharstringEntry ๐Ÿ”’
Charstrings ๐Ÿ”’
Collection of charstrings.
Encoding
Associates character codes with glyph names and ids.
Parser ๐Ÿ”’
RawDicts ๐Ÿ”’
Raw dictionary data for a Type1 font.
Subrs ๐Ÿ”’
Collection of subroutines.
Type1Font
A Type1 font.

Enumsยง

RawEncoding ๐Ÿ”’
Encoding that maps characters to glyph identifiers.
Token ๐Ÿ”’

Constantsยง

CHARSTRING_SEED ๐Ÿ”’
Decryption seed for charstring (and subroutine) data.
EEXEC_SEED ๐Ÿ”’
Decryption seed for eexec segment.
NOTDEF_GLYPH ๐Ÿ”’
Simulated .notdef glyph, same as FreeType:
PFB_BINARY_SEGMENT_TAG ๐Ÿ”’
PFB_TEXT_SEGMENT_TAG ๐Ÿ”’

Functionsยง

decode_fixed ๐Ÿ”’
Decode a fixed point value, scaling to a specific power of ten.
decode_hex ๐Ÿ”’
Converts hex formatted data to associated bytes.
decode_int ๐Ÿ”’
Decode an integer, optionally with a base.
decode_int_prefix ๐Ÿ”’
Decode an integer at the given position, returning the value and the index of the position following the decoded integer.
decode_pfb_binary_segments ๐Ÿ”’
Returns an iterator over the sequence of PFB binary segments.
decode_pfb_tag ๐Ÿ”’
Returns the PFB tag and segment size.
decrypt ๐Ÿ”’
Returns an iterator yielding the decrypted bytes.
find_eexec_data ๐Ÿ”’
Helper to find the position of the data following the โ€˜eexecโ€™ token.
is_special ๐Ÿ”’
Characters that always delimit tokens.
is_special_or_whitespace ๐Ÿ”’
is_whitespace ๐Ÿ”’
verify_header ๐Ÿ”’