From ca24a411bb744950537a7f34d6f6bc6f45ab1e95 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 11 Nov 2023 20:22:30 +0900 Subject: [PATCH] text: update comments --- text/text.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/text/text.go b/text/text.go index 067599967..b09f84a12 100644 --- a/text/text.go +++ b/text/text.go @@ -395,8 +395,8 @@ func (f faceWithLineHeight) Close() error { 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) { - return f.face.Glyph(dot, r) +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(origin, r) } 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. // 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 // Y is the Y position to render this glyph. // 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 }