fix: new_with_font
This commit is contained in:
parent
11f756c8ab
commit
117e96963e
|
|
@ -117,7 +117,7 @@ impl Annotator {
|
||||||
}
|
}
|
||||||
pub fn new_with_font(font: &str) -> Self {
|
pub fn new_with_font(font: &str) -> Self {
|
||||||
Self {
|
Self {
|
||||||
font: match Self::load_font(font) {
|
font: match Self::load_font(Some(font)) {
|
||||||
Ok(x) => x,
|
Ok(x) => x,
|
||||||
Err(err) => panic!("Failed to load font: {}", err),
|
Err(err) => panic!("Failed to load font: {}", err),
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue