Expand description
OpenType font variations common tables.
Structs§
- Active
Tuple 🔒Variation Iter - An iterator over the active
TupleVariations 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.
- Delta
SetIndex MapFormat0 - The DeltaSetIndexMap table format 0
- Delta
SetIndex MapFormat1 - The DeltaSetIndexMap table format 1
- Entry
Format - Entry format for a DeltaSetIndexMap.
- Item
Deltas 🔒 - Item
Variation Data - The ItemVariationData subtable
- Item
Variation Store - The ItemVariationStore table
- Packed
Delta Fetcher - A decoding helper that adds packed deltas directly to an output slice.
- 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 - TupleVariationHeader
- Tuple
Variation Header Iter - A helper type for iterating over
TupleVariationHeaders. - Tuple
Variation Iter - An iterator over the
TupleVariations for a specific glyph. - Variation
Region - The VariationRegion record
- Variation
Region List - The VariationRegionList table
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.
- NOT_
COMPUTED - Marks a shared tuple scalar that was never computed.
- NO_
VARIATION_ INDEX
Traits§
- Tuple
Delta - Trait for deltas that are computed in a tuple variation store.
Functions§
- advance_
delta_ 🔒with_ scalars - The delta for a glyph’s advance, reusing
scalars. - 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_ 🔒with_ scalars - The delta for an item, reusing
scalars. - 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.
- scalar_
for 🔒 - Computes the scalar for a peak at
coords, interpolating over the tuple’s range if it states one.