Skip to content

Commit

Permalink
Merge pull request #1225 from googlefonts/snft-typo
Browse files Browse the repository at this point in the history
Small typo in CFF_SFTN_VERSION
  • Loading branch information
rsheeter authored Nov 10, 2024
2 parents 92fe401 + 45d9e53 commit a30a7c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion font-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion read-fonts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ impl<'a> FontRef<'a> {
data: FontData<'a>,
table_directory: TableDirectory<'a>,
) -> Result<Self, ReadError> {
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 {
Expand Down

0 comments on commit a30a7c0

Please sign in to comment.