From 11f756c8ab7edbb29102388c7c5c9e41611f6899 Mon Sep 17 00:00:00 2001 From: moweilin Date: Thu, 5 Dec 2024 16:58:46 +0800 Subject: [PATCH] add: annotator add new_with_font --- src/core/annotator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/annotator.rs b/src/core/annotator.rs index 9d07cc1..8e2361b 100644 --- a/src/core/annotator.rs +++ b/src/core/annotator.rs @@ -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,