add Text.Atlas (Atlas has some useful stuff, e.g. line height)

This commit is contained in:
faiface 2017-05-03 23:55:44 +02:00
parent e112598b5c
commit 48f3d5cb3e
1 changed files with 4 additions and 0 deletions

View File

@ -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)
}