add Text.Atlas (Atlas has some useful stuff, e.g. line height)
This commit is contained in:
parent
e112598b5c
commit
48f3d5cb3e
|
@ -77,6 +77,10 @@ func New(face font.Face, runeSets ...[]rune) *Text {
|
|||
return txt
|
||||
}
|
||||
|
||||
func (txt *Text) Atlas() *Atlas {
|
||||
return txt.atlas
|
||||
}
|
||||
|
||||
func (txt *Text) SetMatrix(m pixel.Matrix) {
|
||||
txt.trans.SetMatrix(m)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue