diff --git a/text/text.go b/text/text.go index c6e73175..84365c24 100644 --- a/text/text.go +++ b/text/text.go @@ -252,7 +252,7 @@ func (txt *Text) DrawColorMask(t pixel.Target, matrix pixel.Matrix, mask color.C txt.dirty = true } - offset := txt.Bounds().AnchorPos(txt.anchor) + offset := txt.Orig.Sub(txt.Bounds().Max.Add(txt.Bounds().AnchorPos(txt.anchor.Opposite()))) txt.mat = pixel.IM.Moved(offset).Chained(txt.mat) if mask == nil {