Skip to content

Commit 57a0d9f

Browse files
Fix typos. (#176)
1 parent 3465663 commit 57a0d9f

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

benches/outline/outline.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Font
8585
{
8686
FT_Fixed coords[1] = {500 * 65536L};
8787
if (FT_Set_Var_Design_Coordinates(m_face, 1, coords)) {
88-
throw "failed to set veriations";
88+
throw "failed to set variations";
8989
}
9090
}
9191

@@ -222,7 +222,7 @@ class Font
222222
void setVariations()
223223
{
224224
if (!ttfp_set_variation(m_face, TTFP_TAG('w', 'g', 'h', 't'), 500)) {
225-
throw "failed to set veriations";
225+
throw "failed to set variations";
226226
}
227227
}
228228

src/tables/colr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,7 @@ impl<'a> Table<'a> {
904904
glyph_id: GlyphId,
905905
palette: u16,
906906
painter: &mut dyn Painter<'a>,
907-
recusion_stack: &mut RecursionStack,
907+
recursion_stack: &mut RecursionStack,
908908
#[cfg(feature = "variable-fonts")] coords: &[NormalizedCoordinate],
909909
foreground_color: RgbaColor,
910910
) -> Option<()> {
@@ -913,7 +913,7 @@ impl<'a> Table<'a> {
913913
base,
914914
palette,
915915
painter,
916-
recusion_stack,
916+
recursion_stack,
917917
#[cfg(feature = "variable-fonts")]
918918
coords,
919919
foreground_color,

src/tables/feat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct FeatureName<'a> {
6868
pub name_index: u16,
6969
}
7070

71-
/// A list fo feature names.
71+
/// A list of feature names.
7272
#[derive(Clone, Copy)]
7373
pub struct FeatureNames<'a> {
7474
data: &'a [u8],

src/tables/stat.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ impl<'a> Table<'a> {
466466
AxisValueSubtable::Format4(_) => {
467467
// A query that's intended to search format 4 subtables can be performed
468468
// across multiple axes. A separate function that takes a collection of
469-
// axis-value pairs is more sutable than this.
469+
// axis-value pairs is more suitable than this.
470470
continue;
471471
}
472472
}

tests/tables/cff1.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ test_cs_err!(move_to_with_too_many_coords, &[
651651
UInt8(operator::ENDCHAR),
652652
], CFFError::InvalidArgumentsStackLength);
653653

654-
test_cs_err!(move_to_with_not_enought_coords, &[
654+
test_cs_err!(move_to_with_not_enough_coords, &[
655655
CFFInt(10), UInt8(operator::MOVE_TO),
656656
UInt8(operator::ENDCHAR),
657657
], CFFError::InvalidArgumentsStackLength);
@@ -661,7 +661,7 @@ test_cs_err!(hmove_to_with_too_many_coords, &[
661661
UInt8(operator::ENDCHAR),
662662
], CFFError::InvalidArgumentsStackLength);
663663

664-
test_cs_err!(hmove_to_with_not_enought_coords, &[
664+
test_cs_err!(hmove_to_with_not_enough_coords, &[
665665
UInt8(operator::HORIZONTAL_MOVE_TO),
666666
UInt8(operator::ENDCHAR),
667667
], CFFError::InvalidArgumentsStackLength);
@@ -671,7 +671,7 @@ test_cs_err!(vmove_to_with_too_many_coords, &[
671671
UInt8(operator::ENDCHAR),
672672
], CFFError::InvalidArgumentsStackLength);
673673

674-
test_cs_err!(vmove_to_with_not_enought_coords, &[
674+
test_cs_err!(vmove_to_with_not_enough_coords, &[
675675
UInt8(operator::VERTICAL_MOVE_TO),
676676
UInt8(operator::ENDCHAR),
677677
], CFFError::InvalidArgumentsStackLength);
@@ -713,7 +713,7 @@ test_cs_err!(curve_to_with_invalid_num_of_coords_2, &[
713713
UInt8(operator::ENDCHAR),
714714
], CFFError::InvalidArgumentsStackLength);
715715

716-
test_cs_err!(hh_curve_to_with_not_enought_coords, &[
716+
test_cs_err!(hh_curve_to_with_not_enough_coords, &[
717717
CFFInt(10), CFFInt(20), UInt8(operator::MOVE_TO),
718718
CFFInt(30), CFFInt(40), CFFInt(50), UInt8(operator::HH_CURVE_TO),
719719
UInt8(operator::ENDCHAR),
@@ -726,7 +726,7 @@ test_cs_err!(hh_curve_to_with_too_many_coords, &[
726726
UInt8(operator::ENDCHAR),
727727
], CFFError::InvalidArgumentsStackLength);
728728

729-
test_cs_err!(vv_curve_to_with_not_enought_coords, &[
729+
test_cs_err!(vv_curve_to_with_not_enough_coords, &[
730730
CFFInt(10), CFFInt(20), UInt8(operator::MOVE_TO),
731731
CFFInt(30), CFFInt(40), CFFInt(50), UInt8(operator::VV_CURVE_TO),
732732
UInt8(operator::ENDCHAR),

0 commit comments

Comments
 (0)