Skip to content

Commit 277f3f7

Browse files
committed
Bump deps
1 parent 147b4c2 commit 277f3f7

24 files changed

+680
-266
lines changed

Cargo.lock

+676-262
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ clap = { version = "4.4.2", features = ["derive"] }
1818
clap_complete = "4.4.3"
1919
clap_mangen = "0.2.14"
2020
fontdb = "0.16.1"
21-
image = { version = "0.24", default-features = false, features = ["jpeg", "png", "gif"] }
21+
image = { version = "0.25.1", default-features = false, features = ["jpeg", "png", "gif"] }
2222
miniz_oxide = "0.7"
2323
once_cell = "1.18.0"
2424
oxipng = { version = "9", default-features = false, features = ["filetime", "parallel", "zopfli"] }

src/render/text.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ pub fn render(
245245

246246
let name = font_names.get(&font.reference).unwrap();
247247

248-
let gid = glyph.glyph_id.0;
248+
let gid = glyph.id.0;
249249
let ts = glyph
250-
.transform
250+
.outline_transform()
251251
.pre_scale(font.units_per_em as f32, font.units_per_em as f32)
252252
// The glyphs in usvg are already scaled according the font size, but
253253
// we want to leverage the native PDF font size feature instead, so we downscale
@@ -517,7 +517,7 @@ pub fn fill_fonts(group: &Group, ctx: &mut Context, fontdb: &fontdb::Database) {
517517
});
518518

519519
if let Some(ref mut font) = font {
520-
font.glyph_set.insert(g.glyph_id.0, g.text.clone());
520+
font.glyph_set.insert(g.id.0, g.text.clone());
521521
}
522522
}
523523
}
Loading
Loading
Loading
-39 Bytes
Loading
-54 Bytes
Loading
-2 Bytes
Loading
-452 Bytes
Loading
Loading
Loading
Loading
Loading
-452 Bytes
Loading
Loading
Loading
Loading
Loading
Loading
Loading
-452 Bytes
Loading
-452 Bytes
Loading
-452 Bytes
Loading

0 commit comments

Comments
 (0)