Expand description
Positioning subtables.
Each kind serves the original format and its extended counterpart, which differ only in the widths of glyph IDs, counts and offsets.
StructsΒ§
- Anchor
Rows π - Rows of anchor offsets with one column per mark class, as in a base array or a ligature component array.
- Class
Pairs π - What the class pair subtables of both widths share: their class definitions and value matrix.
- Cursive
Pos1 π - Cursive attachment.
- Mark
Base πPos1 - Mark-to-base attachment.
- Mark
LigPos1 π - Mark-to-ligature attachment.
- Mark
Mark πPos1 - Mark-to-mark attachment.
- Marks π
- The records of a mark array: a class and an anchor offset each.
- Pair
Kern1 π - Kerning by glyph pairs: pair adjustment format 1 whose records hold only an advance for the first glyph.
- Pair
Kern2 π - Kerning by glyph classes: class pair adjustment whose matrix holds only an advance for the first glyph.
- Pair
Pos1 π - Pair adjustment by glyph pairs.
- Pair
Pos2 π - Pair adjustment by glyph classes.
- Pair
Pos2 πCaches - Caches of both classes of a glyph.
- Single
Pos1 π - Single adjustment by one value record.
- Single
Pos2 π - Single adjustment by a value record per covered glyph.
EnumsΒ§
- Second
Glyph π - The glyph that a pair starting at the current glyph would pair with.
ConstantsΒ§
- NARROW π
- The width of glyph IDs, counts and child offsets in the original formats.
- WIDE π
- Their width in the extended formats.
FunctionsΒ§
- accept_
base π - Whether a mark may attach to the base at
idx: only the first glyph of a multiple substitution is a base, unless a mark breaks the sequence. https://github.com/harfbuzz/harfbuzz/issues/740 https://github.com/harfbuzz/harfbuzz/issues/1020 - accept_
ligature π - Whether a mark may attach to the ligature at
idx: the first glyph of a multiple substitution may have been ligated with what precedes it. https://github.com/harfbuzz/harfbuzz/issues/4969 - apply_
kerning π - Adds a kerning
valueto the current glyphβs advance, then moves on to the second glyph of the pair. - apply_
pair π - Applies the two value records of a pair at
second_index, then moves past the pair. - apply_
value π - Adds
recordto the position of glyphidx, returning whether it changed anything. A truncated record changes nothing. - apply_
value_ πfields - Applies a value record of any format. Device offsets in it are relative
to
base. - attach_
mark π - Attaches the current glyph, a mark, to the glyph at
base_pos. - class_
matrix_ πrange - The byte range of a class pair subtableβs value matrix, or
Noneif it does not fit in the subtableβslenbytes. - cross_
offset π - The cross-direction offset of the glyph at
index, summed along its cursive chain. - find_
mark_ πbase - Searches back from the current glyph for the base a mark attaches to, remembering the result for the marks that follow.
- is_
kerning π - Whether a pair subtable only adjusts the advance of its first glyph, which is how kerning is stored.
- pair_
caches π - pair_
classes π - The classes of the first and second glyph of a pair.
- pair_
set_ πdigest - The second glyphs of a pair set whose count and glyphs are
widthbytes, or a full digest if it is truncated. - reverse_
cursive_ πminor_ offset - Reverses the cursive chain from glyph
iso that it ends atnew_parent. ReturnsNoneonly ifiis outsidepos.