From 8450cc88b216f7556252d8df3627f7d0915df365 Mon Sep 17 00:00:00 2001 From: Yevhenii Reizner Date: Tue, 3 Sep 2024 10:59:36 +0300 Subject: [PATCH] Fix C API build. --- c-api/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c-api/lib.rs b/c-api/lib.rs index b1547162..d2198b74 100644 --- a/c-api/lib.rs +++ b/c-api/lib.rs @@ -363,7 +363,7 @@ pub extern "C" fn ttfp_get_width(face: *const ttfp_face) -> u16 { /// @return Face's italic angle or `0.0` when `post` table is not present. #[no_mangle] pub extern "C" fn ttfp_get_italic_angle(face: *const ttfp_face) -> f32 { - face_from_ptr(face).italic_angle().unwrap_or(0.0) + face_from_ptr(face).italic_angle() } /// @brief Returns a horizontal face ascender.