summaryrefslogtreecommitdiff
path: root/src/export
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-31 09:13:31 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-31 10:13:34 +0200
commit97858e5992a52459dd8a34be7a6b4786952b491a (patch)
treeee4cde4e9cf051a1ecd7d27f13ec26df3ff8df9d /src/export
parentccb4753e24eefb5b8cf2acd6d25f0e2afce1c022 (diff)
Basic manual tracking
Diffstat (limited to 'src/export')
-rw-r--r--src/export/render.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/export/render.rs b/src/export/render.rs
index 163707eb..9f088433 100644
--- a/src/export/render.rs
+++ b/src/export/render.rs
@@ -246,7 +246,12 @@ fn render_outline_glyph(
// doesn't exist, yet.
let bitmap = crate::memo::memoized_ref(
(&ctx.fonts, text.face_id, id),
- |(fonts, face_id, id)| pixglyph::Glyph::load(fonts.get(face_id).ttf(), id),
+ |(fonts, face_id, id)| {
+ (
+ pixglyph::Glyph::load(fonts.get(face_id).ttf(), id),
+ ((), (), ()),
+ )
+ },
|glyph| glyph.as_ref().map(|g| g.rasterize(ts.tx, ts.ty, ppem)),
)?;