Skip to main content

kern_diff

Function kern_diff 

Source
pub fn kern_diff(
    font_a: &FontRef<'_>,
    font_b: &FontRef<'_>,
    max_changes: usize,
    no_match: bool,
) -> Value
Expand description

Compare two fonts and return a JSON representation of the differences in kerning

Arguments:

  • font_a - The first font to compare
  • font_b - The second font to compare
  • max_changes - The maximum number of changes to report before giving up
  • no_match - Don’t try to match glyph names between fonts