diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-06-10 23:53:20 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-06-10 23:54:16 +0200 |
| commit | ed6550fdb08eae92bffab6b6b137b1e0eebf62c6 (patch) | |
| tree | 74152a38f7aa2ed2ac2fa190e81494422700ca36 /src/library/math | |
| parent | 6aff11057bc88257c9383137952bb41b5b85c3dc (diff) | |
Bump dependencies
Diffstat (limited to 'src/library/math')
| -rw-r--r-- | src/library/math/rex.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/math/rex.rs b/src/library/math/rex.rs index f839a9e8..47de4b3a 100644 --- a/src/library/math/rex.rs +++ b/src/library/math/rex.rs @@ -1,5 +1,5 @@ use rex::error::{Error, LayoutError}; -use rex::font::{FontContext, MathFont}; +use rex::font::FontContext; use rex::layout::{LayoutSettings, Style}; use rex::parser::color::RGBA; use rex::render::{Backend, Cursor, Renderer}; @@ -38,7 +38,7 @@ impl Layout for RexNode { let face = ctx.fonts.get(face_id); let ctx = face .math() - .and_then(FontContext::new) + .map(|math| FontContext::new(face.ttf(), math)) .ok_or("font is not suitable for math") .at(span)?; @@ -110,7 +110,7 @@ impl FrameBackend { } impl Backend for FrameBackend { - fn symbol(&mut self, pos: Cursor, gid: u16, scale: f64, _: &MathFont) { + fn symbol(&mut self, pos: Cursor, gid: u16, scale: f64) { self.frame.push( self.transform(pos), Element::Text(Text { |
