From 01ed232d37d0c574546f3d0bc8c01aff33f2b47f Mon Sep 17 00:00:00 2001 From: Julien Roncaglia Date: Tue, 29 Oct 2024 22:57:23 +0100 Subject: [PATCH] Use a more realistic example --- src/font/system.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/font/system.rs b/src/font/system.rs index e0e163ac33..49c3d2c2ec 100644 --- a/src/font/system.rs +++ b/src/font/system.rs @@ -226,7 +226,7 @@ impl FontSystemBuilder { /// /// FontSystem::builder() /// .load_font(Source::Binary(Arc::new(include_bytes!("Roboto-Regular.ttf")))) - /// .load_font(Source::File("./Roboto.ttf".into())) + /// .load_font(Source::File("./Roboto-Bold.ttf".into())) /// .build(); /// ``` pub fn load_font(mut self, source: fontdb::Source) -> Self { @@ -247,7 +247,7 @@ impl FontSystemBuilder { /// FontSystem::builder() /// .load_fonts([ /// Source::Binary(Arc::new(include_bytes!("Roboto-Regular.ttf"))), - /// Source::File("./Roboto.ttf".into()) + /// Source::File("./Roboto-Bold.ttf".into()) /// ]) /// .build(); /// ```