summaryrefslogtreecommitdiff
path: root/src/export/render.rs
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2023-04-20 11:23:03 +0200
committerGitHub <noreply@github.com>2023-04-20 11:23:03 +0200
commit2a682f0008b91e7c33c6e65b3ecfc690268ab405 (patch)
tree1af18b7de6230bafce1a2e7eaff20f614b88f7df /src/export/render.rs
parent4524539c2bc5f3a9f53bc57a1902264fc894969b (diff)
Add alt text to image function and PDF (#823)
Diffstat (limited to 'src/export/render.rs')
-rw-r--r--src/export/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/export/render.rs b/src/export/render.rs
index 3c2cea8d..b3a8f5ce 100644
--- a/src/export/render.rs
+++ b/src/export/render.rs
@@ -238,7 +238,7 @@ fn render_bitmap_glyph(
let size = text.size.to_f32();
let ppem = size * ts.sy;
let raster = text.font.ttf().glyph_raster_image(id, ppem as u16)?;
- let image = Image::new(raster.data.into(), raster.format.into()).ok()?;
+ let image = Image::new(raster.data.into(), raster.format.into(), None).ok()?;
// FIXME: Vertical alignment isn't quite right for Apple Color Emoji,
// and maybe also for Noto Color Emoji. And: Is the size calculation