1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//!
//! A binding for the library `SDL2_ttf`
//!
//! 
//! Note that you need to build with the
//! feature `ttf` for this module to be enabled,
//! like so:
//!
//! ```bash
//! $ cargo build --features "ttf"
//! ```
//!
//! If you want to use this with from inside your own
//! crate, you will need to add this in your Cargo.toml
//!
//! ```toml
//! [dependencies.sdl2]
//! version = ...
//! default-features = false
//! features = ["ttf"]
//! ```

mod font;
mod context;

pub use self::context::{
    init, has_been_initialized, get_linked_version, Sdl2TtfContext, InitError,
};
pub use self::font::{
    Font, FontStyle, Hinting, GlyphMetrics, PartialRendering, FontError,
    FontResult
};