diff --git a/text/v2/gotextfacesource.go b/text/v2/gotextfacesource.go index eee5230e5..7360a5b11 100644 --- a/text/v2/gotextfacesource.go +++ b/text/v2/gotextfacesource.go @@ -221,8 +221,7 @@ func (g *GoTextFaceSource) shape(text string, face *GoTextFace) (shaping.Output, scaledSegs[i] = seg for j := range seg.Args { scaledSegs[i].Args[j].X *= scale - scaledSegs[i].Args[j].Y *= scale - scaledSegs[i].Args[j].Y *= -1 + scaledSegs[i].Args[j].Y *= -scale } } diff --git a/text/v2/text.go b/text/v2/text.go index 3e47aa770..d014127e2 100644 --- a/text/v2/text.go +++ b/text/v2/text.go @@ -26,7 +26,8 @@ import ( "github.com/hajimehoshi/ebiten/v2/vector" ) -// Face is an interface representing a font face. The implementations are only faces in this package, like GoTextFace and StdFace. +// Face is an interface representing a font face. +// The implementations are only faces defined in this package, like GoTextFace and StdFace. type Face interface { // Metrics returns the metrics for this Face. Metrics() Metrics