Skip to content

Commit

Permalink
Fix C API build.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazrFalcon committed Sep 3, 2024
1 parent 1eba570 commit 8450cc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c-api/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8450cc8

Please sign in to comment.