feat: tracing

This commit is contained in:
Nova
2022-12-02 20:46:28 -05:00
parent 692ee95500
commit 42d2a41d57
9 changed files with 82 additions and 49 deletions

View File

@@ -94,7 +94,7 @@ impl Text {
.font_path
.as_deref()
.and_then(|path| Font::from_file(sk, path))
.unwrap_or(Font::default(sk));
.unwrap_or_else(|| Font::default(sk));
Ok(SendWrapper::new(TextStyle::new(
sk,
font,