1 | // Copyright 2013 The Servo Project Developers. See the COPYRIGHT |
2 | // file at the top-level directory of this distribution. |
3 | // |
4 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
5 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
6 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your |
7 | // option. This file may not be copied, modified, or distributed |
8 | // except according to those terms. |
9 | |
10 | #![crate_name = "freetype" ] |
11 | #![crate_type = "lib" ] |
12 | #![crate_type = "dylib" ] |
13 | #![crate_type = "rlib" ] |
14 | |
15 | #![allow (non_snake_case)] |
16 | #![allow (non_camel_case_types)] |
17 | #![allow (non_upper_case_globals)] |
18 | |
19 | #[cfg (feature = "freetype-sys" )] |
20 | extern crate freetype_sys; |
21 | extern crate libc; |
22 | |
23 | pub type FT_Error = ::std::os::raw::c_int; |
24 | |
25 | #[inline ] |
26 | pub fn succeeded(error: FT_Error) -> bool { |
27 | error == freetype::FT_Err_Ok as FT_Error |
28 | } |
29 | |
30 | #[allow (improper_ctypes)] // https://github.com/rust-lang/rust/issues/34798 |
31 | pub mod freetype; |
32 | pub mod tt_os2; |
33 | |