zenith_core/font/embedded.rs
1//! Compile-time bytes of the bundled Noto fonts.
2//!
3//! These are the deterministic default faces used by [`super::default_provider`].
4//! They live under `zenith-core/assets/fonts/` so the crate is self-contained
5//! when published, and are exposed publicly so other workspace crates (e.g.
6//! `zenith-layout`) can reuse the exact same bytes without embedding a copy.
7
8/// Noto Sans Regular — `"Noto Sans"`, weight 400, normal.
9pub const NOTO_SANS_REGULAR: &[u8] = include_bytes!("../../assets/fonts/NotoSans-Regular.ttf");
10/// Noto Sans Bold — `"Noto Sans"`, weight 700, normal.
11pub const NOTO_SANS_BOLD: &[u8] = include_bytes!("../../assets/fonts/NotoSans-Bold.ttf");
12/// Noto Sans Italic — `"Noto Sans"`, weight 400, italic.
13pub const NOTO_SANS_ITALIC: &[u8] = include_bytes!("../../assets/fonts/NotoSans-Italic.ttf");
14/// Noto Sans Bold Italic — `"Noto Sans"`, weight 700, italic.
15pub const NOTO_SANS_BOLD_ITALIC: &[u8] =
16 include_bytes!("../../assets/fonts/NotoSans-BoldItalic.ttf");
17/// Noto Sans Mono Regular — `"Noto Sans Mono"`, weight 400, normal.
18pub const NOTO_SANS_MONO_REGULAR: &[u8] =
19 include_bytes!("../../assets/fonts/NotoSansMono-Regular.ttf");
20/// Noto Sans Mono Bold — `"Noto Sans Mono"`, weight 700, normal.
21pub const NOTO_SANS_MONO_BOLD: &[u8] = include_bytes!("../../assets/fonts/NotoSansMono-Bold.ttf");
22/// Noto Serif Regular — `"Noto Serif"`, weight 400, normal.
23pub const NOTO_SERIF_REGULAR: &[u8] = include_bytes!("../../assets/fonts/NotoSerif-Regular.ttf");
24/// Noto Serif Bold — `"Noto Serif"`, weight 700, normal.
25pub const NOTO_SERIF_BOLD: &[u8] = include_bytes!("../../assets/fonts/NotoSerif-Bold.ttf");
26/// Noto Serif Italic — `"Noto Serif"`, weight 400, italic.
27pub const NOTO_SERIF_ITALIC: &[u8] = include_bytes!("../../assets/fonts/NotoSerif-Italic.ttf");
28/// Noto Serif Bold Italic — `"Noto Serif"`, weight 700, italic.
29pub const NOTO_SERIF_BOLD_ITALIC: &[u8] =
30 include_bytes!("../../assets/fonts/NotoSerif-BoldItalic.ttf");