summaryrefslogtreecommitdiff
path: root/library/src
diff options
context:
space:
mode:
Diffstat (limited to 'library/src')
-rw-r--r--library/src/math/mod.rs3
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())))
};