Skip to content

Commit

Permalink
Update fontdue to 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Dec 10, 2023
1 parent 353dd90 commit 179bb7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ edition = "2018"
[dependencies]
wgpu = "0.18.0"
euclid = "0.22.7"
fontdue = "0.7.2"
fontdue = "0.8.0"
rect_packer = "0.2.1"

[dev-dependencies]
Expand Down
7 changes: 3 additions & 4 deletions src/glyphs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@ pub struct GlyphCache {

impl GlyphCache {
pub fn new(device: &wgpu::Device) -> Self {
let settings = fontdue::FontSettings {
collection_index: 0,
scale: 100.0,
};
let mut settings = fontdue::FontSettings::default();
settings.collection_index = 0;
settings.scale = 100.0;
let font = include_bytes!("fonts/Anodina-Regular.ttf") as &[u8];

Self {
Expand Down

0 comments on commit 179bb7a

Please sign in to comment.