text/v2: refactoring

This commit is contained in:
Hajime Hoshi 2023-12-10 16:44:43 +09:00
parent e0741dcd94
commit 5a8cfb2561
2 changed files with 3 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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