linux-rust: add font

This commit is contained in:
Kavish Devar
2025-10-23 12:38:05 +05:30
parent fec226336c
commit 99940b98ae
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -170,7 +170,7 @@ fn generate_icon(text: &str, text_mode: bool, charging: bool) -> Icon {
let mut img = ImageBuffer::from_fn(width, height, |_, _| Rgba([0u8, 0u8, 0u8, 0u8]));
let font_data = include_bytes!("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf");
let font_data = include_bytes!("../../assets/font/DejaVuSans.ttf");
let font = match FontRef::try_from_slice(font_data) {
Ok(f) => f,
Err(_) => {