diff --git a/font-types/src/lib.rs b/font-types/src/lib.rs index a8828cf83..d2042419b 100644 --- a/font-types/src/lib.rs +++ b/font-types/src/lib.rs @@ -54,4 +54,4 @@ pub const TT_SFNT_VERSION: u32 = 0x00010000; /// The SFNT version for legacy Apple fonts containing TrueType outlines. pub const TRUE_SFNT_VERSION: u32 = 0x74727565; /// The SFNT version for fonts containing CFF outlines. -pub const CFF_SFTN_VERSION: u32 = 0x4F54544F; +pub const CFF_SFNT_VERSION: u32 = 0x4F54544F; diff --git a/read-fonts/src/lib.rs b/read-fonts/src/lib.rs index 91bfdc615..41e485547 100644 --- a/read-fonts/src/lib.rs +++ b/read-fonts/src/lib.rs @@ -322,7 +322,7 @@ impl<'a> FontRef<'a> { data: FontData<'a>, table_directory: TableDirectory<'a>, ) -> Result { - if [TT_SFNT_VERSION, CFF_SFTN_VERSION, TRUE_SFNT_VERSION] + if [TT_SFNT_VERSION, CFF_SFNT_VERSION, TRUE_SFNT_VERSION] .contains(&table_directory.sfnt_version()) { Ok(FontRef {