Skip to content

Commit

Permalink
Reduce typo count. (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Sep 8, 2024
1 parent bf56870 commit 4fae10c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/internal/cmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ pub enum MapVariant {
Variant(u16),
}

/// Maps a codepoint with variation selector to a glyph identifer using the
/// Maps a codepoint with variation selector to a glyph identifier using the
/// format 14 subtable at the specified offset in data.
///
/// <https://docs.microsoft.com/en-us/typography/opentype/spec/cmap#format-14-unicode-variation-sequences>
Expand Down
8 changes: 4 additions & 4 deletions src/internal/head.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ impl<'a> Maxp<'a> {
}
}

/// Horizonal header table.
/// Horizontal header table.
#[derive(Copy, Clone)]
pub struct Hhea<'a>(Bytes<'a>);

Expand All @@ -692,12 +692,12 @@ impl<'a> Hhea<'a> {
self.0.data()
}

/// Returns the major version of the horizonal header table. Set to 1.
/// Returns the major version of the horizontal header table. Set to 1.
pub fn major_version(&self) -> u16 {
self.0.read(0).unwrap_or(0)
}

/// Returns the minor version of the horizonal header table. Set to 0.
/// Returns the minor version of the horizontal header table. Set to 0.
pub fn minor_version(&self) -> u16 {
self.0.read(2).unwrap_or(0)
}
Expand Down Expand Up @@ -753,7 +753,7 @@ impl<'a> Hhea<'a> {
self.0.read(32).unwrap_or(0)
}

/// Returns the number of "long" metric entries in the horizonal metrics
/// Returns the number of "long" metric entries in the horizontal metrics
/// table.
pub fn num_long_metrics(&self) -> u16 {
self.0.read(34).unwrap_or(0)
Expand Down
2 changes: 1 addition & 1 deletion src/shape/partition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub trait ShapeOptions {
pub struct SimpleShapeOptions<'a> {
/// Script for the fragment.
pub script: Script,
/// Langauge for the fragment.
/// Language for the fragment.
pub language: Option<Language>,
/// Text direction of the fragment.
pub direction: Direction,
Expand Down
2 changes: 1 addition & 1 deletion src/text/cluster/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl CharCluster {
}
}

/// Resets the cluster to the intial empty state.
/// Resets the cluster to the initial empty state.
pub fn clear(&mut self) {
self.info = ClusterInfo(0);
self.len = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/text/unicode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub trait Codepoint: Sized + Copy {
/// Returns the canonical decomposition of the character.
fn decompose(self) -> Decompose;

/// Returns the compatiblity decomposition of the character.
/// Returns the compatibility decomposition of the character.
fn decompose_compatible(self) -> Decompose;
}

Expand Down

0 comments on commit 4fae10c

Please sign in to comment.