Embed fonts from repo instead of ~/.local/share/fonts

Move BrassMono font files into fonts/ and use a repo-relative
include_bytes! path so the build is self-contained. Add CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-31 17:15:48 -07:00
parent 1ad67aea20
commit 963fcc6458
4 changed files with 34 additions and 4 deletions

View File

@@ -13,10 +13,7 @@ const NORD9: egui::Color32 = egui::Color32::from_rgb(0x81, 0xA1, 0xC1);
const NORD11: egui::Color32 = egui::Color32::from_rgb(0xBF, 0x61, 0x6A);
const NORD13: egui::Color32 = egui::Color32::from_rgb(0xEB, 0xCB, 0x8B);
const BRASS_MONO: &[u8] = include_bytes!(concat!(
env!("HOME"),
"/.local/share/fonts/BrassMonoCode-Regular.ttf"
));
const BRASS_MONO: &[u8] = include_bytes!("../fonts/BrassMonoCode-Regular.ttf");
fn main() -> eframe::Result {
let options = eframe::NativeOptions {