summaryrefslogtreecommitdiff
path: root/library/src/math
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/math')
-rw-r--r--library/src/math/fragment.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/src/math/fragment.rs b/library/src/math/fragment.rs
index 73daa4b2..de456b82 100644
--- a/library/src/math/fragment.rs
+++ b/library/src/math/fragment.rs
@@ -222,6 +222,8 @@ impl GlyphFragment {
c: self.c,
x_advance: Em::from_length(self.width, self.font_size),
x_offset: Em::zero(),
+ span: Span::detached(),
+ offset: 0,
}],
};
let size = Size::new(self.width, self.ascent + self.descent);