Skip to content

Commit 65cfd07

Browse files
committed
Update the font to general font name
1 parent 857fd7f commit 65cfd07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/wasm-demo/src/func_plot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn start_plotting(
77
) -> Result<Box<dyn Fn((i32, i32)) -> Option<(f32, f32)>>, Box<dyn std::error::Error>> {
88
let backend = CanvasBackend::new(element).unwrap();
99
let root = backend.into_drawing_area();
10-
let font: FontDesc = ("Arial", 20.0).into();
10+
let font: FontDesc = ("sans-serif", 20.0).into();
1111

1212
root.fill(&WHITE)?;
1313

0 commit comments

Comments
 (0)