Expand description
OpenType font variations common tables.
Structsยง
- Active
Tuple ๐Variation Iter - An iterator over the active
TupleVariation
s for a specific glyph for a given set of coordinates. - Delta
RunIter - Implements the logic for iterating over the individual runs
- Delta
SetIndex - Outer and inner indices for reading from an ItemVariationStore.
- Entry
Format - Entry format for a DeltaSetIndexMap.
- Float
Item Delta - Floating point item delta computed by an item variation store.
- Item
Deltas ๐ - Packed
Deltas - Packed Deltas
- Packed
Point Numbers - Packed โPointโ Numbers
- Packed
Point Numbers Iter - An iterator over the packed point numbers data.
- Point
RunIter ๐ - Implements the logic for iterating over the individual runs
- Region
Axis Coordinates - The RegionAxisCoordinates record
- Tuple
- A Tuple Record
- Tuple
Delta Iter - An iterator over the deltas for a glyph.
- Tuple
Index - Tuple
Variation - A single set of tuple variation data
- Tuple
Variation Count - The โtupleVariationCountโ field of the Tuple Variation Store Header
- Tuple
Variation Data - Tuple
Variation Header Iter - A helper type for iterating over
TupleVariationHeader
s. - Tuple
Variation Iter - An iterator over the
TupleVariation
s for a specific glyph. - Variation
Region - The VariationRegion record
Enumsยง
- Delta
RunType - The type of values for a given delta run (influences the number of bytes per delta)
- Delta
SetIndex Map - The DeltaSetIndexMap table
- Tuple
Delta ๐Values
Constantsยง
- DELTAS_
ARE_ ๐WORDS - Flag indicating the data type for delta values in the run.
- DELTAS_
ARE_ ๐ZERO - Flag indicating that this run contains no data, and that the deltas for this run are all zero.
- DELTA_
RUN_ ๐COUNT_ MASK - Mask for the low 6 bits to provide the number of delta values in the run, minus one.
- NO_
VARIATION_ INDEX
Traitsยง
- Float
Item Delta Target - Trait for applying floating point item deltas to target values.
- Tuple
Delta - Trait for deltas that are computed in a tuple variation store.
Functionsยง
- advance_
delta ๐ - compute_
scalar ๐ - Compute the fixed point scalar for this tuple at the given location in variation space.
- count_
all_ ๐deltas - Counts the number of deltas available in the given data, avoiding excessive reads.
- item_
delta ๐ - read_
control_ ๐byte - returns the count and the โuses_two_bytesโ flag from the control byte
- read_
dense_ ๐deltas - This is basically a manually applied loop unswitching optimization for reading deltas. It reads each typed run into a slice for processing instead of handling each delta individually with all the necessary branching that implies.
- read_
sparse_ ๐deltas - See read_dense_deltas docs.
Type Aliasesยง
- Delta
SetIndex MapFormat0 - The DeltaSetIndexMap table format 0
- Delta
SetIndex MapFormat1 - The DeltaSetIndexMap table format 1
- Item
Variation Data - The ItemVariationData subtable
- Item
Variation Store - The ItemVariationStore table
- Tuple
Variation Header - TupleVariationHeader
- Variation
Region List - The VariationRegionList table