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