Skip to main content

Module encoding

Module encoding 

Source
Expand description

PostScript standard encoding tables.

Provides STANDARD_ENCODING and ISO_LATIN1_ENCODING as static arrays mapping byte values (0–255) to glyph name strings.

Statics§

ISO_LATIN1_ENCODING
ISOLatin1Encoding: maps byte values 0–255 to glyph names.
MACROMAN_ENCODING
MacRomanEncoding: maps byte values 0–255 to glyph names. PDF Reference §D.1 — Mac OS standard Roman character set.
STANDARD_ENCODING
PostScript StandardEncoding: maps byte values 0–255 to glyph names. Empty string means .notdef (no glyph assigned to that code point).
SYMBOL_ENCODING
ZapfDingbats built-in encoding (from the URW D050000L font). Used as the base encoding for symbolic ZapfDingbats fonts when no /BaseEncoding is specified. Symbol font encoding (maps character codes to Greek/mathematical symbol glyph names).
WINANSI_ENCODING
WinAnsiEncoding: maps byte values 0–255 to glyph names. PDF Reference §D.1 — Windows code page 1252 mapping.
ZAPFDINGBATS_ENCODING

Functions§

standard_encoding_name
Look up a glyph name by StandardEncoding code point. Returns None for .notdef entries.