Skip to main content

Module cmap

Module cmap 

Source
Expand description

The cmap table

Structsยง

Cmap
cmap
Cmap0
cmap Format 0: Byte encoding table
Cmap0Iter
Iterator over all (codepoint, glyph identifier) pairs in a format 0 subtable.
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
Cmap4Iter
Iterator over all (codepoint, glyph identifier) pairs in the subtable.
Cmap4Segment ๐Ÿ”’
A format 4 segment a search found, for a batch to reuse.
Cmap6Iter
Iterator over all (codepoint, glyph identifier) pairs in the subtable.
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
Cmap15
Extended glyph repertoire UVS mapping (ISO/IEC 14496-22:2026, 5.1.2.5.11).
Cmap10Iter
Iterator over all (codepoint, glyph identifier) pairs in the subtable.
Cmap12Group ๐Ÿ”’
A format 12 group a search found, for a batch to reuse.
Cmap12Iter
Iterator over all (codepoint, glyph identifier) pairs in the subtable.
Cmap13Iter
Iterator over all (codepoint, glyph identifier) pairs 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
DefaultUvs
Default UVS table
DefaultUvsIter ๐Ÿ”’
Dmap
Delta map table (ISO/IEC 14496-22:2026, 5.6.15).
EncodingRecord
Encoding Record
NonDefaultUvs
Non-Default UVS table
NonDefaultUvs24
Non-default UVS mappings with 24-bit glyph IDs, used by Cmap15.
NonDefaultUvsIter ๐Ÿ”’
The (codepoint, glyph) mappings of a non-default UVS table, whose glyph IDs are 16-bit in format 14 and 24-bit in format 15.
SequentialMapGroup
Used in Cmap8 and Cmap12
SubHeader
Part of Cmap2
UnicodeRange
Part of Cmap14
UvsMapping
Part of Cmap14
UvsMapping24
UVSMapping24 record (ISO/IEC 14496-22:2026, 5.1.2.5.11).
UvsSubtable
A Unicode variation sequences subtable: format 14, or format 15, whose non-default mappings carry 24-bit glyph IDs.
UvsSubtableIter
Iterator over all (codepoint, selector, mapping variant) triples in a Unicode variation sequences subtable.
VariationSelector
Part of Cmap14
VariationSelector15
Part of Cmap15.

Enumsยง

CmapSubtable
The different cmap subtable formats.
CmapSubtableIter
Iterator over all (codepoint, glyph identifier) pairs in the subtable.
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 ๐Ÿ”’
UNICODE_VARIATION_SEQUENCES_ENCODING ๐Ÿ”’
WINDOWS_SYMBOL_ENCODING ๐Ÿ”’
WINDOWS_UNICODE_BMP_ENCODING ๐Ÿ”’
WINDOWS_UNICODE_FULL_ENCODING ๐Ÿ”’

Traitsยง

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

Functionsยง

cmap1213_find_group ๐Ÿ”’
Finds the group that maps codepoint, by binary search, with the codepoints of that group the search reaches it for.
cmap1213_iter_group ๐Ÿ”’
Shared group resolution code for cmap 12/13.
cmap1213_map_codepoint ๐Ÿ”’
Shared codepoint mapping code for cmap 12/13.

Type Aliasesยง

Cmap14Iter
Iterator over all (codepoint, selector, mapping variant) triples in a format 14 subtable.
Cmap15Iter
Iterator over all (codepoint, selector, mapping variant) triples in a format 15 subtable.