rename Glyph.Orig -> Dot
This commit is contained in:
parent
cfaff8c0cb
commit
65236863fe
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue