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,