feat: fix development build path patterns for templates/fonts

This commit is contained in:
2025-07-10 12:43:45 -05:00
parent 01e71d2ff5
commit 4d7f58af43
2 changed files with 14 additions and 2 deletions

View File

@@ -24,7 +24,11 @@ impl Rasterizer {
pub fn new() -> Self {
let mut fontdb = fontdb::Database::new();
fontdb.load_system_fonts();
fontdb.load_fonts_dir("./fonts");
fontdb.load_fonts_dir(if cfg!(debug_assertions) {
"src/fonts"
} else {
"fonts"
});
Self { font_db: fontdb }
}