diff --git a/text/v2/gotextseg.go b/text/v2/gotextseg.go index 5a399656f..15916c6f0 100644 --- a/text/v2/gotextseg.go +++ b/text/v2/gotextseg.go @@ -116,7 +116,7 @@ func segmentsToImage(segs []api.Segment, subpixelOffset fixed.Point26_6, glyphBo } } - dst := image.NewAlpha(image.Rect(0, 0, w, h)) + dst := image.NewRGBA(image.Rect(0, 0, w, h)) rast.Draw(dst, dst.Bounds(), image.Opaque, image.Point{}) return ebiten.NewImageFromImage(dst) }