summaryrefslogtreecommitdiff
path: root/library/src/math
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-03-11 23:28:35 +0100
committerLaurenz <laurmaedje@gmail.com>2023-03-11 23:29:32 +0100
commitca6edf5283c258d8410134d678347977cb273cdd (patch)
treeb2b46ba70c054b0cbdefa06edbc5fd999cddb1fa /library/src/math
parent1a390deaea040191cf0e5937bd8e1427b49db71b (diff)
Jump to source and preview
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);