Skip to main content

Module gpos

Module gpos 

Source
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Β§

AnchorRows πŸ”’
Rows of anchor offsets with one column per mark class, as in a base array or a ligature component array.
ClassPairs πŸ”’
What the class pair subtables of both widths share: their class definitions and value matrix.
CursivePos1 πŸ”’
Cursive attachment.
MarkBasePos1 πŸ”’
Mark-to-base attachment.
MarkLigPos1 πŸ”’
Mark-to-ligature attachment.
MarkMarkPos1 πŸ”’
Mark-to-mark attachment.
Marks πŸ”’
The records of a mark array: a class and an anchor offset each.
PairKern1 πŸ”’
Kerning by glyph pairs: pair adjustment format 1 whose records hold only an advance for the first glyph.
PairKern2 πŸ”’
Kerning by glyph classes: class pair adjustment whose matrix holds only an advance for the first glyph.
PairPos1 πŸ”’
Pair adjustment by glyph pairs.
PairPos2 πŸ”’
Pair adjustment by glyph classes.
PairPos2Caches πŸ”’
Caches of both classes of a glyph.
SinglePos1 πŸ”’
Single adjustment by one value record.
SinglePos2 πŸ”’
Single adjustment by a value record per covered glyph.

EnumsΒ§

SecondGlyph πŸ”’
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 value to 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 record to the position of glyph idx, 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 None if it does not fit in the subtable’s len bytes.
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 width bytes, or a full digest if it is truncated.
reverse_cursive_minor_offset πŸ”’
Reverses the cursive chain from glyph i so that it ends at new_parent. Returns None only if i is outside pos.