Skip to main content

freetype/
lib.rs

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// https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6// <LICENSE-MIT or https://opensource.org/license/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")]
20extern crate freetype_sys;
21extern crate libc;
22
23pub type FT_Error = ::std::os::raw::c_int;
24
25#[inline]
26pub fn succeeded(error: FT_Error) -> bool {
27    error == freetype::FT_Err_Ok as FT_Error
28}
29
30#[deny(improper_ctypes)]
31pub mod freetype;
32pub mod tt_os2;