summaryrefslogtreecommitdiff
path: root/crates/typst-pdf/src/content.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-10-03 18:16:44 +0200
committerGitHub <noreply@github.com>2024-10-03 16:16:44 +0000
commit10eff1d6d5aa9835150d2f3bd9dda9359d453b16 (patch)
tree23eb60fe489f018f62b57006e2b79cd773b0dc94 /crates/typst-pdf/src/content.rs
parent340b892d796a96aa8055cbd7f4b6263a53547d0d (diff)
Tweak default ignorable fix (#5105)
Diffstat (limited to 'crates/typst-pdf/src/content.rs')
-rw-r--r--crates/typst-pdf/src/content.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-pdf/src/content.rs b/crates/typst-pdf/src/content.rs
index 4f2baafb..79323b6a 100644
--- a/crates/typst-pdf/src/content.rs
+++ b/crates/typst-pdf/src/content.rs
@@ -493,7 +493,7 @@ fn write_normal_text(
let glyph_set = ctx.resources.glyph_sets.entry(text.item.font.clone()).or_default();
for g in text.glyphs() {
- glyph_set.entry(g.id).or_insert_with(|| text.glyph_text(&g));
+ glyph_set.entry(g.id).or_insert_with(|| text.glyph_text(g));
}
let fill_transform = ctx.state.transforms(Size::zero(), pos);
@@ -638,7 +638,7 @@ fn write_color_glyphs(
ctx.content.show(Str(&[index]));
- glyph_set.entry(glyph.id).or_insert_with(|| text.glyph_text(&glyph));
+ glyph_set.entry(glyph.id).or_insert_with(|| text.glyph_text(glyph));
}
ctx.content.end_text();