font_map_core/
lib.rs

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
33
34
35
//! Core functionality for `font-map`
#![warn(missing_docs)]
#![warn(clippy::pedantic)]
#![allow(clippy::module_name_repetitions)]
#![cfg_attr(docsrs, feature(doc_cfg))]

/// Utility macro for printing debug messages if the `debug-parser` feature is enabled
macro_rules! debug_msg {
    ($($tokens:tt)*) => {
        #[cfg(feature = "debug-parser")]
        { eprintln!($($tokens)*) }
    };
}

#[macro_use]
mod reader;

#[cfg(feature = "codegen")]
#[cfg_attr(docsrs, doc(cfg(feature = "codegen")))]
mod codegen;

mod svg;
mod unicode_range;

pub mod error;
pub mod font;

#[cfg(feature = "codegen")]
#[cfg_attr(docsrs, doc(cfg(feature = "codegen")))]
pub use codegen::FontCodegenExt;

/// This module contains the raw data structures from parsing font files
pub mod raw {
    pub mod ttf;
}