truce_font/lib.rs
1//! Bundled fonts for the truce audio plugin framework.
2//!
3//! Currently exposes a single font - `JetBrains` Mono Regular - as a
4//! `&'static [u8]` of the TTF bytes, suitable for hand-off to
5//! `fontdue`, `egui::FontData::from_static`, `iced::Font` (via the
6//! `with_font` helpers on each editor backend), or any other font
7//! consumer that takes raw bytes.
8//!
9//! ## License
10//!
11//! `JetBrains` Mono is distributed under the SIL Open Font License,
12//! Version 1.1. The full license text is included in the source tree
13//! at `fonts/OFL.txt` and is also bundled into the published crate
14//! tarball. The font's embedded copyright notice
15//! ("Copyright 2020 The `JetBrains` Mono Project Authors") is preserved
16//! inside the TTF.
17//!
18//! Downstream redistribution must keep the font's copyright notice
19//! intact and ship a copy of the OFL.
20
21/// `JetBrains` Mono Regular as raw TTF bytes. Suitable for embedding in
22/// a plugin GUI as the fallback / canonical truce monospace font.
23///
24/// The full license text is at `fonts/OFL.txt` in the crate source
25/// (also packaged into the crates.io tarball via the manifest's
26/// `include` list).
27pub static JETBRAINS_MONO: &[u8] = include_bytes!("../fonts/JetBrainsMono-Regular.ttf");