Skip to content

Commit a2af0a5

Browse files
committed
Specify that from_face() is only for Linux and Mac OS
1 parent 6b64dca commit a2af0a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tt_os2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pub struct TrueTypeOS2Table {
77
}
88

99
impl TrueTypeOS2Table {
10+
#[cfg(any(target_os = "linux", target_os = "macos"))]
1011
pub fn from_face(face: &mut Face) -> Option<Self> {
1112
unsafe {
1213
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

Comments
 (0)