From 65236863fe903e1390542ab27fb2eee1ceb62d61 Mon Sep 17 00:00:00 2001 From: faiface Date: Sun, 7 May 2017 21:49:26 +0200 Subject: [PATCH] rename Glyph.Orig -> Dot --- text/atlas.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/text/atlas.go b/text/atlas.go index 9624ebe..a8b7d8e 100644 --- a/text/atlas.go +++ b/text/atlas.go @@ -11,7 +11,7 @@ import ( ) type Glyph struct { - Orig pixel.Vec + Dot pixel.Vec Frame pixel.Rect Advance float64 } @@ -152,7 +152,7 @@ func (a *Atlas) DrawRune(prevR, r rune, dot pixel.Vec) (rect, frame, bounds pixe glyph := a.Glyph(r) - rect = glyph.Frame.Moved(dot - glyph.Orig) + rect = glyph.Frame.Moved(dot - glyph.Dot) bounds = rect if bounds.W()*bounds.H() != 0 {