Skip to main content

apply_pair_kerning

Function apply_pair_kerning 

Source
pub(super) fn apply_pair_kerning(
    pos: &mut [GlyphPosition],
    i: usize,
    j: usize,
    kern: i32,
    horizontal: bool,
    cross_stream: bool,
) -> Option<()>
Expand description

Applies a pair kerning value, splitting it across the two glyphs unless it is cross-stream, in which case only the second glyph moves.