summaryrefslogtreecommitdiffstats
path: root/font
diff options
context:
space:
mode:
authorMartin Lindhe <martin-commit@ubique.se>2017-10-30 16:03:58 +0100
committerJoe Wilm <jwilm@users.noreply.github.com>2017-10-30 09:25:13 -0700
commit5b444375f22927c3661c331f3f37519940204bc0 (patch)
tree0079436834a54bd5e58e48e46a253f2a73890b6d /font
parentf646f6c9f8b04d7c880920941eccce699fba6b04 (diff)
fix some typos in comments
Diffstat (limited to 'font')
-rw-r--r--font/src/ft/fc/pattern.rs6
-rw-r--r--font/src/ft/mod.rs2
2 files changed, 4 insertions, 4 deletions
diff --git a/font/src/ft/fc/pattern.rs b/font/src/ft/fc/pattern.rs
index 88cf37be..592d3859 100644
--- a/font/src/ft/fc/pattern.rs
+++ b/font/src/ft/fc/pattern.rs
@@ -71,7 +71,7 @@ impl<'a> StringPropertyIter<'a> {
}
}
-/// Iterator over interger properties
+/// Iterator over integer properties
pub struct BooleanPropertyIter<'a> {
pattern: &'a PatternRef,
object: &'a [u8],
@@ -108,7 +108,7 @@ impl<'a> BooleanPropertyIter<'a> {
}
}
-/// Iterator over interger properties
+/// Iterator over integer properties
pub struct IntPropertyIter<'a> {
pattern: &'a PatternRef,
object: &'a [u8],
@@ -226,7 +226,7 @@ impl<'a> LcdFilterPropertyIter<'a> {
}
}
-/// Iterator over interger properties
+/// Iterator over integer properties
pub struct DoublePropertyIter<'a> {
pattern: &'a PatternRef,
object: &'a [u8],
diff --git a/font/src/ft/mod.rs b/font/src/ft/mod.rs
index ce5cea62..6cd859e9 100644
--- a/font/src/ft/mod.rs
+++ b/font/src/ft/mod.rs
@@ -142,7 +142,7 @@ impl IntoFontconfigType for Weight {
}
impl FreeTypeRasterizer {
- /// Load a font face accoring to `FontDesc`
+ /// Load a font face according to `FontDesc`
fn get_face(&mut self, desc: &FontDesc, size: Size) -> Result<FontKey, Error> {
// Adjust for DPI
let size = Size::new(size.as_f32_pts() * self.device_pixel_ratio * 96. / 72.);