Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
RazrFalcon committed Feb 13, 2022
1 parent 8282b84 commit 6805d57
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 40 deletions.
89 changes: 52 additions & 37 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ required-features = ["filter", "text", "system-fonts", "memmap-fonts"]

[dependencies]
gif = "0.11"
jpeg-decoder = { version = "0.1", default-features = false }
jpeg-decoder = { version = "0.2", default-features = false }
log = "0.4"
pico-args = "0.4"
png = "0.17"
Expand Down
2 changes: 1 addition & 1 deletion usvg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ svgtypes = "0.8"
# for text to path
fontdb = { version = "0.8", optional = true, default-features = false }
rustybuzz = { version = "0.4", optional = true }
ttf-parser = { version = "0.12", optional = true }
ttf-parser = { version = "0.14", optional = true }
unicode-bidi = { version = "0.3", optional = true }
unicode-script = { version = "0.5", optional = true }
unicode-vo = { version = "0.1", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion usvg/src/text/fontdb_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl DatabaseExt for Database {
self.with_face_data(id, |data, face_index| -> Option<Font> {
let font = ttf_parser::Face::from_slice(data, face_index).ok()?;

let units_per_em = NonZeroU16::new(font.units_per_em()?)?;
let units_per_em = NonZeroU16::new(font.units_per_em())?;

let ascent = font.ascender();
let descent = font.descender();
Expand Down

0 comments on commit 6805d57

Please sign in to comment.