Skip to main content

font_map_core/
lib.rs

1//! Core functionality for `font-map`
2#![warn(missing_docs)]
3#![warn(clippy::pedantic)]
4#![allow(clippy::module_name_repetitions)]
5#![allow(clippy::doc_comment_double_space_linebreaks)]
6#![cfg_attr(docsrs, feature(doc_cfg))]
7
8/// Utility macro for printing debug messages if the `debug-parser` feature is enabled
9macro_rules! debug_msg {
10    ($($tokens:tt)*) => {
11        #[cfg(feature = "debug-parser")]
12        { eprintln!($($tokens)*) }
13    };
14}
15
16#[macro_use]
17mod reader;
18
19#[cfg(feature = "codegen")]
20#[cfg_attr(docsrs, doc(cfg(feature = "codegen")))]
21pub mod codegen;
22
23mod svg;
24mod unicode_range;
25
26pub mod error;
27pub mod font;
28
29/// This module contains the raw data structures from parsing font files
30pub mod raw {
31    pub mod ttf;
32}