mirror of
https://github.com/Xevion/time-banner.git
synced 2025-12-13 06:13:11 -06:00
feat: fix development build path patterns for templates/fonts
This commit is contained in:
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user