run_tests

Function run_tests 

Source
pub fn run_tests<'a>(
    glyph_a: &'a Glyph,
    glyph_b: &'a Glyph,
    tolerance: Option<f64>,
    kinkiness: Option<f64>,
    upem: Option<u16>,
) -> Vec<Problem>
Expand description

The main interpolatability testing function

Returns a list of Problems, which are serializable and can be converted to JSON.

Arguments:

  • glyph_a - the first glyph to test
  • glyph_b - the second glyph to test
  • tolerance - the maximum tolerance for problems; defaults to 0.95
  • kinkiness - the maximum tolerance for kinks; defaults to 0.5
  • upem - the UPEM value; defaults to 1000