Module cmap

Source
Expand description

The cmap table

Structsยง

Cmap4Iter
Iterator over all (codepoint, glyph identifier) pairs in the subtable.
Cmap12Iter
Iterator over all (codepoint, glyph identifier) pairs in the subtable.
Cmap13Iter
Iterator over all (codepoint, glyph identifier) pairs in the subtable.
Cmap14Iter
Iterator over all (codepoint, selector, mapping variant) triples in the subtable.
Cmap1213Iter ๐Ÿ”’
Shared iterator for cmap 12/13.
Cmap1213IterGroup ๐Ÿ”’
Remapped groups for iterating cmap12/13.
CmapIterLimits
Character and glyph limits for iterating format 12 and 13 subtables.
ConstantMapGroup
Part of Cmap13
DefaultUvsIter ๐Ÿ”’
EncodingRecord
Encoding Record
NonDefaultUvsIter ๐Ÿ”’
SequentialMapGroup
Used in Cmap8 and Cmap12
SubHeader
Part of Cmap2
UnicodeRange
Part of Cmap14
UvsMapping
Part of Cmap14
VariationSelector
Part of Cmap14

Enumsยง

CmapSubtable
The different cmap subtable formats.
MapVariant
Result of mapping a codepoint with a variation selector.
PlatformId
https://docs.microsoft.com/en-us/typography/opentype/spec/cmap#platform-ids

Constantsยง

UNICODE_1_0_ENCODING ๐Ÿ”’
UNICODE_1_1_ENCODING ๐Ÿ”’
UNICODE_2_0_BMP_ENCODING ๐Ÿ”’
UNICODE_2_0_FULL_ENCODING ๐Ÿ”’
UNICODE_FULL_ENCODING ๐Ÿ”’
UNICODE_ISO_ENCODING ๐Ÿ”’
WINDOWS_SYMBOL_ENCODING ๐Ÿ”’
WINDOWS_UNICODE_BMP_ENCODING ๐Ÿ”’
WINDOWS_UNICODE_FULL_ENCODING ๐Ÿ”’

Traitsยง

AnyMapGroup ๐Ÿ”’
Trait to unify constant and sequential map groups.

Functionsยง

cmap1213_iter_group ๐Ÿ”’
Shared group resolution code for cmap 12/13.
cmap1213_map_codepoint ๐Ÿ”’
Shared codepoint mapping code for cmap 12/13.

Type Aliasesยง

Cmap
cmap
Cmap0
cmap Format 0: Byte encoding table
Cmap2
cmap Format 2: High-byte mapping through table
Cmap4
cmap Format 4: Segment mapping to delta values
Cmap6
cmap Format 6: Trimmed table mapping
Cmap8
cmap Format 8: mixed 16-bit and 32-bit coverage
Cmap10
cmap Format 10: Tr
Cmap12
cmap Format 12: Segmented coverage
Cmap13
cmap Format 13: Many-to-one range mappings
Cmap14
cmap Format 14: Unicode Variation Sequences
DefaultUvs
Default UVS table
NonDefaultUvs
Non-Default UVS table