Skip to content

Commit

Permalink
Use a more realistic example
Browse files Browse the repository at this point in the history
  • Loading branch information
vbfox committed Oct 29, 2024
1 parent e47e899 commit 01ed232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/font/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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();
/// ```
Expand Down

0 comments on commit 01ed232

Please sign in to comment.