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 {
|
pub fn new() -> Self {
|
||||||
Default::default()
|
Default::default()
|
||||||
}
|
}
|
||||||
pub fn new_with_fonts(font: &str) -> Self {
|
pub fn new_with_font(font: &str) -> Self {
|
||||||
Self {
|
Self {
|
||||||
font: match Self::load_font(font) {
|
font: match Self::load_font(font) {
|
||||||
Ok(x) => x,
|
Ok(x) => x,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue