add: annotator add new_with_font
This commit is contained in:
parent
9db432d172
commit
11f756c8ab
|
|
@ -115,7 +115,7 @@ impl Annotator {
|
|||
pub fn new() -> Self {
|
||||
Default::default()
|
||||
}
|
||||
pub fn new_with_fonts(font: &str) -> Self {
|
||||
pub fn new_with_font(font: &str) -> Self {
|
||||
Self {
|
||||
font: match Self::load_font(font) {
|
||||
Ok(x) => x,
|
||||
|
|
|
|||
Loading…
Reference in New Issue