diff options
| author | Peng Guanwen <pg999w@outlook.com> | 2024-12-17 22:07:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-17 14:07:45 +0000 |
| commit | 73253d465192454f0dfe3fe9eef46d495b343aef (patch) | |
| tree | 4d8179d7b0d7c169e283471d7df928d264192ca0 /crates/typst-layout/src/image.rs | |
| parent | 54cee16c3128695089d7472451f02646c6d81521 (diff) | |
Support for defining which charset should be covered by a font (#5305)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'crates/typst-layout/src/image.rs')
| -rw-r--r-- | crates/typst-layout/src/image.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-layout/src/image.rs b/crates/typst-layout/src/image.rs index 628fe10d..f44d6887 100644 --- a/crates/typst-layout/src/image.rs +++ b/crates/typst-layout/src/image.rs @@ -54,7 +54,7 @@ pub fn layout_image( format, elem.alt(styles), engine.world, - &families(styles).collect::<Vec<_>>(), + &families(styles).map(|f| f.as_str()).collect::<Vec<_>>(), elem.flatten_text(styles), ) .at(span)?; |
