From b0483975b747ae9e2c551ec6701db87e74596435 Mon Sep 17 00:00:00 2001 From: Chris Waldon Date: Thu, 15 Dec 2022 08:50:04 -0500 Subject: [PATCH] text: drop unused field on line Signed-off-by: Chris Waldon --- text/gotext.go | 1 - text/shaper.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/text/gotext.go b/text/gotext.go index d433fa52..2a187a8f 100644 --- a/text/gotext.go +++ b/text/gotext.go @@ -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 } diff --git a/text/shaper.go b/text/shaper.go index 34ad8512..eb83ab0d 100644 --- a/text/shaper.go +++ b/text/shaper.go @@ -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,