Skip to content

Commit

Permalink
fix typo and no_std support
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrg committed Jan 19, 2025
1 parent 08a4e21 commit b5c01f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion skrifa/src/outline/hint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ mod tests {
let HinterKind::Glyf(tt_hinter) = &hinter.kind else {
panic!("this is definitely a TrueType hinter");
};
// Make sure backward compability mode is enabled
// Make sure backward compatibility mode is enabled
assert!(tt_hinter.backward_compatibility());
let outline = outlines.get(gid).unwrap();
let metrics = outline.draw(&hinter, &mut NullPen).unwrap();
Expand Down
4 changes: 4 additions & 0 deletions skrifa/src/outline/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ use core::fmt::Debug;
use pen::PathStyle;
use read_fonts::{types::GlyphId, TableProvider};

#[cfg(feature = "libm")]
#[allow(unused_imports)]
use core_maths::CoreFloat;

/// Source format for an outline glyph.
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub enum OutlineGlyphFormat {
Expand Down

0 comments on commit b5c01f2

Please sign in to comment.