| 1 | // font-kit/src/sources/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 | //! Various databases of installed fonts that can be queried. |
| 12 | //! |
| 13 | //! The system-specific sources (Core Text, DirectWrite, and Fontconfig) contain the fonts that are |
| 14 | //! installed on the system. The remaining databases (`fs`, `mem`, and `multi`) allow `font-kit` to |
| 15 | //! query fonts not installed on the system. |
| 16 | |
| 17 | #[cfg (any(target_os = "macos" , target_os = "ios" ))] |
| 18 | pub mod core_text; |
| 19 | |
| 20 | #[cfg (target_family = "windows" )] |
| 21 | pub mod directwrite; |
| 22 | |
| 23 | #[cfg (any( |
| 24 | not(any( |
| 25 | target_os = "macos" , |
| 26 | target_os = "ios" , |
| 27 | target_family = "windows" , |
| 28 | target_arch = "wasm32" , |
| 29 | target_env = "ohos" , |
| 30 | )), |
| 31 | feature = "source-fontconfig" |
| 32 | ))] |
| 33 | pub mod fontconfig; |
| 34 | |
| 35 | #[cfg (not(target_arch = "wasm32" ))] |
| 36 | pub mod fs; |
| 37 | |
| 38 | pub mod mem; |
| 39 | |
| 40 | pub mod multi; |
| 41 | |