Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos. #176

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions benches/outline/outline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}

Expand Down Expand Up @@ -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";
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/tables/colr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand All @@ -913,7 +913,7 @@ impl<'a> Table<'a> {
base,
palette,
painter,
recusion_stack,
recursion_stack,
#[cfg(feature = "variable-fonts")]
coords,
foreground_color,
Expand Down
2 changes: 1 addition & 1 deletion src/tables/feat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
2 changes: 1 addition & 1 deletion src/tables/stat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
10 changes: 5 additions & 5 deletions tests/tables/cff1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -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),
Expand All @@ -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),
Expand Down
Loading