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.
MasterAxis
One axis of a multiple master font.
MultipleMaster
The design space of a multiple master font.
Parser πŸ”’
RawBlend πŸ”’
The blend dictionaries of a font as they are read, before they are checked against each other.
RawDicts πŸ”’
Raw dictionary data for a Type1 font.
Subrs πŸ”’
Collection of subroutines.
Type1Font
A Type1 font.
Type1Instance
A Type 1 font drawn with a given blend of its masters.

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.
MAX_MAP_POINTS πŸ”’
The most points in the design map of one axis.
MAX_MASTERS πŸ”’
The most masters a multiple master font can have.
MAX_MASTER_AXES πŸ”’
The most axes a multiple master font can have.
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_name πŸ”’
Preserve valid UTF-8 names; otherwise decode each source byte as Latin-1.
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 πŸ”’
mul_div_wide πŸ”’
Returns a * b / c, rounded as Fixed::mul_div rounds, without overflowing on the way.
round_fixed πŸ”’
Rounds to a whole unit, halves away from zero, as FreeType’s FT_RoundFix does.
saturate πŸ”’
Clamps value to the range of an i32.
verify_header πŸ”’