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/math | |
| 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/math')
| -rw-r--r-- | crates/typst-layout/src/math/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-layout/src/math/mod.rs b/crates/typst-layout/src/math/mod.rs index 32059cef..e642f633 100644 --- a/crates/typst-layout/src/math/mod.rs +++ b/crates/typst-layout/src/math/mod.rs @@ -237,7 +237,7 @@ fn find_math_font( let variant = variant(styles); let world = engine.world; let Some(font) = families(styles).find_map(|family| { - let id = world.book().select(family, variant)?; + let id = world.book().select(family.as_str(), variant)?; let font = world.font(id)?; let _ = font.ttf().tables().math?.constants?; Some(font) |
