Fix different-fonts-in-text bug ✔

This commit is contained in:
Laurenz 2020-08-30 15:32:52 +02:00
parent 07f387d088
commit fe51ad2e7c

View File

@ -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;
}