text: drop unused field on line

Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
Chris Waldon
2022-12-15 08:50:04 -05:00
committed by Elias Naur
parent bfb47538aa
commit b0483975b7
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -80,7 +80,6 @@ type line struct {
// runeCount is the number of text runes represented by this line's runs.
runeCount int
xOffset fixed.Int26_6
yOffset int
}
+1 -1
View File
@@ -327,7 +327,7 @@ func (l *Shaper) NextGlyph() (_ Glyph, ok bool) {
}
glyph := Glyph{
ID: g.id,
X: align + line.xOffset + run.X + runOffset,
X: align + run.X + runOffset,
Y: int32(line.yOffset),
Ascent: line.ascent,
Descent: line.descent,