We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b64dca commit a2af0a5Copy full SHA for a2af0a5
src/tt_os2.rs
@@ -7,6 +7,7 @@ pub struct TrueTypeOS2Table {
7
}
8
9
impl TrueTypeOS2Table {
10
+ #[cfg(any(target_os = "linux", target_os = "macos"))]
11
pub fn from_face(face: &mut Face) -> Option<Self> {
12
unsafe {
13
let os2 = ffi::FT_Get_Sfnt_Table(face.raw_mut() as *mut ffi::FT_FaceRec, ffi::ft_sfnt_os2) as ffi::TT_OS2_Internal;
0 commit comments