diff --git a/benches/outline/outline.cc b/benches/outline/outline.cc index 833fe0c4..5d6585d9 100644 --- a/benches/outline/outline.cc +++ b/benches/outline/outline.cc @@ -85,7 +85,7 @@ class Font { FT_Fixed coords[1] = {500 * 65536L}; if (FT_Set_Var_Design_Coordinates(m_face, 1, coords)) { - throw "failed to set veriations"; + throw "failed to set variations"; } } @@ -222,7 +222,7 @@ class Font void setVariations() { if (!ttfp_set_variation(m_face, TTFP_TAG('w', 'g', 'h', 't'), 500)) { - throw "failed to set veriations"; + throw "failed to set variations"; } } diff --git a/src/tables/colr.rs b/src/tables/colr.rs index 83b4e532..eb716f2a 100644 --- a/src/tables/colr.rs +++ b/src/tables/colr.rs @@ -904,7 +904,7 @@ impl<'a> Table<'a> { glyph_id: GlyphId, palette: u16, painter: &mut dyn Painter<'a>, - recusion_stack: &mut RecursionStack, + recursion_stack: &mut RecursionStack, #[cfg(feature = "variable-fonts")] coords: &[NormalizedCoordinate], foreground_color: RgbaColor, ) -> Option<()> { @@ -913,7 +913,7 @@ impl<'a> Table<'a> { base, palette, painter, - recusion_stack, + recursion_stack, #[cfg(feature = "variable-fonts")] coords, foreground_color, diff --git a/src/tables/feat.rs b/src/tables/feat.rs index 879c83b9..180629f2 100644 --- a/src/tables/feat.rs +++ b/src/tables/feat.rs @@ -68,7 +68,7 @@ pub struct FeatureName<'a> { pub name_index: u16, } -/// A list fo feature names. +/// A list of feature names. #[derive(Clone, Copy)] pub struct FeatureNames<'a> { data: &'a [u8], diff --git a/src/tables/stat.rs b/src/tables/stat.rs index 77553428..1eb241c3 100644 --- a/src/tables/stat.rs +++ b/src/tables/stat.rs @@ -466,7 +466,7 @@ impl<'a> Table<'a> { AxisValueSubtable::Format4(_) => { // A query that's intended to search format 4 subtables can be performed // across multiple axes. A separate function that takes a collection of - // axis-value pairs is more sutable than this. + // axis-value pairs is more suitable than this. continue; } } diff --git a/tests/tables/cff1.rs b/tests/tables/cff1.rs index 10ac3264..261e1d52 100644 --- a/tests/tables/cff1.rs +++ b/tests/tables/cff1.rs @@ -651,7 +651,7 @@ test_cs_err!(move_to_with_too_many_coords, &[ UInt8(operator::ENDCHAR), ], CFFError::InvalidArgumentsStackLength); -test_cs_err!(move_to_with_not_enought_coords, &[ +test_cs_err!(move_to_with_not_enough_coords, &[ CFFInt(10), UInt8(operator::MOVE_TO), UInt8(operator::ENDCHAR), ], CFFError::InvalidArgumentsStackLength); @@ -661,7 +661,7 @@ test_cs_err!(hmove_to_with_too_many_coords, &[ UInt8(operator::ENDCHAR), ], CFFError::InvalidArgumentsStackLength); -test_cs_err!(hmove_to_with_not_enought_coords, &[ +test_cs_err!(hmove_to_with_not_enough_coords, &[ UInt8(operator::HORIZONTAL_MOVE_TO), UInt8(operator::ENDCHAR), ], CFFError::InvalidArgumentsStackLength); @@ -671,7 +671,7 @@ test_cs_err!(vmove_to_with_too_many_coords, &[ UInt8(operator::ENDCHAR), ], CFFError::InvalidArgumentsStackLength); -test_cs_err!(vmove_to_with_not_enought_coords, &[ +test_cs_err!(vmove_to_with_not_enough_coords, &[ UInt8(operator::VERTICAL_MOVE_TO), UInt8(operator::ENDCHAR), ], CFFError::InvalidArgumentsStackLength); @@ -713,7 +713,7 @@ test_cs_err!(curve_to_with_invalid_num_of_coords_2, &[ UInt8(operator::ENDCHAR), ], CFFError::InvalidArgumentsStackLength); -test_cs_err!(hh_curve_to_with_not_enought_coords, &[ +test_cs_err!(hh_curve_to_with_not_enough_coords, &[ CFFInt(10), CFFInt(20), UInt8(operator::MOVE_TO), CFFInt(30), CFFInt(40), CFFInt(50), UInt8(operator::HH_CURVE_TO), UInt8(operator::ENDCHAR), @@ -726,7 +726,7 @@ test_cs_err!(hh_curve_to_with_too_many_coords, &[ UInt8(operator::ENDCHAR), ], CFFError::InvalidArgumentsStackLength); -test_cs_err!(vv_curve_to_with_not_enought_coords, &[ +test_cs_err!(vv_curve_to_with_not_enough_coords, &[ CFFInt(10), CFFInt(20), UInt8(operator::MOVE_TO), CFFInt(30), CFFInt(40), CFFInt(50), UInt8(operator::VV_CURVE_TO), UInt8(operator::ENDCHAR),