mirror of
https://github.com/Xevion/time-banner.git
synced 2025-12-09 14:08:56 -06:00
Include arial & inter fonts, load into fontdb
This commit is contained in:
BIN
src/fonts/arial.ttf
Normal file
BIN
src/fonts/arial.ttf
Normal file
Binary file not shown.
@@ -27,6 +27,7 @@ pub fn get() -> Result<Vec<u8>, RenderError> {
|
||||
|
||||
let mut fontdb = fontdb::Database::new();
|
||||
fontdb.load_system_fonts();
|
||||
fontdb.load_fonts_dir("./fonts");
|
||||
|
||||
let svg_data = include_bytes!("../test.svg");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user