Fix different-fonts-in-text bug ✔
This commit is contained in:
parent
07f387d088
commit
fe51ad2e7c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user