text: update comments

This commit is contained in:
Hajime Hoshi 2023-11-11 20:22:30 +09:00
parent 81bbc4db0a
commit ca24a411bb

View File

@ -395,8 +395,8 @@ func (f faceWithLineHeight) Close() error {
return f.face.Close() return f.face.Close()
} }
func (f faceWithLineHeight) Glyph(dot fixed.Point26_6, r rune) (dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ok bool) { func (f faceWithLineHeight) Glyph(origin fixed.Point26_6, r rune) (dr image.Rectangle, mask image.Image, maskp image.Point, advance fixed.Int26_6, ok bool) {
return f.face.Glyph(dot, r) return f.face.Glyph(origin, r)
} }
func (f faceWithLineHeight) GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool) { func (f faceWithLineHeight) GlyphBounds(r rune) (bounds fixed.Rectangle26_6, advance fixed.Int26_6, ok bool) {
@ -429,12 +429,12 @@ type Glyph struct {
// X is the X position to render this glyph. // X is the X position to render this glyph.
// The position is determined in a sequence of characters given at AppendGlyphs. // The position is determined in a sequence of characters given at AppendGlyphs.
// The position's origin is the first character's dot ('.') position. // The position's origin is the first character's origin position.
X float64 X float64
// Y is the Y position to render this glyph. // Y is the Y position to render this glyph.
// The position is determined in a sequence of characters given at AppendGlyphs. // The position is determined in a sequence of characters given at AppendGlyphs.
// The position's origin is the first character's dot ('.') position. // The position's origin is the first character's origin position.
Y float64 Y float64
} }