diff --git a/text/v2/layout.go b/text/v2/layout.go index 089456c1e..eeb251864 100644 --- a/text/v2/layout.go +++ b/text/v2/layout.go @@ -128,7 +128,8 @@ func AppendGlyphs(glyphs []Glyph, text string, face Face, options *LayoutOptions // AppndVectorPath appends a vector path for glyphs to the given path. // -// AppendVectorPath works only when face is *GoTextFace so far. For other types, AppendVectorPath does nothing. +// AppendVectorPath works only when the face is *GoTextFace or a composite face using *GoTextFace so far. +// For other types, AppendVectorPath does nothing. func AppendVectorPath(path *vector.Path, text string, face Face, options *LayoutOptions) { forEachLine(text, face, options, func(line string, indexOffset int, originX, originY float64) { face.appendVectorPathForLine(path, line, originX, originY) diff --git a/text/v2/text.go b/text/v2/text.go index 28bc54156..3e2589809 100644 --- a/text/v2/text.go +++ b/text/v2/text.go @@ -27,7 +27,7 @@ import ( "github.com/hajimehoshi/ebiten/v2/vector" ) -// Face is an interface representing a font face. The implementations are only GoTextFace and StdFace. +// Face is an interface representing a font face. The implementations are only faces in this package, like GoTextFace and StdFace. type Face interface { // Metrics returns the metrics for this Face. Metrics() Metrics @@ -125,7 +125,7 @@ type Glyph struct { // EndIndexInBytes is the end index in bytes for the given string at AppendGlyphs. EndIndexInBytes int - // GID is an ID for a glyph of TrueType or OpenType font. GID is valid when the font is GoTextFont. + // GID is an ID for a glyph of TrueType or OpenType font. GID is valid when the face is GoTextFace. GID uint32 // Image is a rasterized glyph image.