diff options
Diffstat (limited to 'crates/typst-layout/src/math/mod.rs')
| -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) |
