Skip to content

Commit

Permalink
bump wgpu and vello
Browse files Browse the repository at this point in the history
Signed-off-by: Shark <[email protected]>
  • Loading branch information
Sharktheone committed Jun 19, 2024
1 parent 88d28da commit c0e38e3
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 50 deletions.
98 changes: 51 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions crates/gosub_vello/src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ fn get_fonts_from_family(font_families: Option<Vec<String>>) -> Vec<Font> {
for (i, f) in font.into_iter().enumerate() {
fonts.push(Font::new(Blob::new(f), i as u32));
}
if fonts.is_empty() {
fonts.push(Font::new(Blob::new(BACKUP_FONT.data.clone()), 0));
}
}
} else {
fonts.push(Font::new(Blob::new(BACKUP_FONT.data.clone()), 0));
}

if fonts.is_empty() {
fonts.push(Font::new(Blob::new(BACKUP_FONT.data.clone()), 0));
}

fonts
}

Expand Down

0 comments on commit c0e38e3

Please sign in to comment.