summaryrefslogtreecommitdiff
path: root/crates/typst-layout/src/math
diff options
context:
space:
mode:
authorPeng Guanwen <pg999w@outlook.com>2024-12-17 22:07:45 +0800
committerGitHub <noreply@github.com>2024-12-17 14:07:45 +0000
commit73253d465192454f0dfe3fe9eef46d495b343aef (patch)
tree4d8179d7b0d7c169e283471d7df928d264192ca0 /crates/typst-layout/src/math
parent54cee16c3128695089d7472451f02646c6d81521 (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.rs2
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)