summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/layout/text.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/layout/text.rs b/src/layout/text.rs
index b95110b7..c1f1f1e7 100644
--- a/src/layout/text.rs
+++ b/src/layout/text.rs
@@ -110,7 +110,7 @@ impl<'a> TextLayouter<'a> {
self.shaped.text.push(c);
self.shaped.glyphs.push(glyph);
- self.shaped.offsets.push(self.width);
+ self.shaped.offsets.push(self.width - self.start);
self.width += char_width;
}