1// font-kit/src/loaders/mod.rs
2//
3// Copyright © 2018 The Pathfinder Project Developers.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11//! The different system services that can load and rasterize fonts.
12
13#[cfg(all(
14 any(target_os = "macos", target_os = "ios"),
15 not(feature = "loader-freetype-default")
16))]
17pub use crate::loaders::core_text as default;
18
19#[cfg(all(target_family = "windows", not(feature = "loader-freetype-default")))]
20pub use crate::loaders::directwrite as default;
21
22#[cfg(any(
23 not(any(target_os = "macos", target_os = "ios", target_family = "windows")),
24 feature = "loader-freetype-default"
25))]
26pub use crate::loaders::freetype as default;
27
28#[cfg(any(target_os = "macos", target_os = "ios"))]
29pub mod core_text;
30
31#[cfg(all(target_family = "windows"))]
32pub mod directwrite;
33
34#[cfg(any(
35 not(any(target_os = "macos", target_os = "ios", target_family = "windows")),
36 feature = "loader-freetype"
37))]
38pub mod freetype;
39