aboutsummaryrefslogtreecommitdiff
path: root/src/style/font/ttf.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/style/font/ttf.rs')
-rw-r--r--src/style/font/ttf.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/style/font/ttf.rs b/src/style/font/ttf.rs
index e6feadc..345aae4 100644
--- a/src/style/font/ttf.rs
+++ b/src/style/font/ttf.rs
@@ -82,9 +82,7 @@ impl FontExt {
_ => unreachable!(),
};
let face = unsafe {
- std::mem::transmute::<_, Option<Face<'static>>>(
- ttf_parser::Face::from_slice(data, idx).ok(),
- )
+ std::mem::transmute::<_, Option<Face<'static>>>(ttf_parser::Face::parse(data, idx).ok())
};
Self { inner: font, face }
}