fix: new_with_font

This commit is contained in:
moweilin 2024-12-05 17:12:16 +08:00
parent 11f756c8ab
commit 117e96963e
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ impl Annotator {
}
pub fn new_with_font(font: &str) -> Self {
Self {
font: match Self::load_font(font) {
font: match Self::load_font(Some(font)) {
Ok(x) => x,
Err(err) => panic!("Failed to load font: {}", err),
},