diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-27 19:27:32 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-27 19:27:32 +0100 |
| commit | 33013af37ac2e28c194d569f44e31574ed54f1c4 (patch) | |
| tree | a7cae5edb783a33687a4cb73a77264bf91c2e90a /library/src | |
| parent | c7c135f25ee00e40fb5f34b49bdcdcbfc2f67f87 (diff) | |
Error message when font doesn't support math
Diffstat (limited to 'library/src')
| -rw-r--r-- | library/src/math/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/src/math/mod.rs b/library/src/math/mod.rs index 2cc8fa9e..1d94661a 100644 --- a/library/src/math/mod.rs +++ b/library/src/math/mod.rs @@ -198,6 +198,9 @@ impl Layout for FormulaNode { Some(font) }) else { + if let Some(span) = self.body.span() { + bail!(span, "current font does not support math"); + } return Ok(Fragment::frame(Frame::new(Size::zero()))) }; |
