summaryrefslogtreecommitdiff
path: root/crates/typst-layout/src/image.rs
diff options
context:
space:
mode:
authorLaurenz Stampfl <47084093+LaurenzV@users.noreply.github.com>2024-12-08 18:06:25 +0100
committerGitHub <noreply@github.com>2024-12-08 17:06:25 +0000
commit67ef6066f40c6503471217600f9873774db394c0 (patch)
treeb5396f200fddf8d804888bef8c1eedaa721b5ef8 /crates/typst-layout/src/image.rs
parent468a60103dca9c6788be2207c9785d5ba771c800 (diff)
Add support for converting text in SVGs to paths (#5390)
Diffstat (limited to 'crates/typst-layout/src/image.rs')
-rw-r--r--crates/typst-layout/src/image.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/typst-layout/src/image.rs b/crates/typst-layout/src/image.rs
index 84a60282..628fe10d 100644
--- a/crates/typst-layout/src/image.rs
+++ b/crates/typst-layout/src/image.rs
@@ -55,6 +55,7 @@ pub fn layout_image(
elem.alt(styles),
engine.world,
&families(styles).collect::<Vec<_>>(),
+ elem.flatten_text(styles),
)
.at(span)?;