add: annotator add new_with_font

This commit is contained in:
moweilin 2024-12-05 16:58:46 +08:00
parent 9db432d172
commit 11f756c8ab
1 changed files with 1 additions and 1 deletions

View File

@ -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,