From 48f3d5cb3ef1edbd7f45f07531c4f7843069a2ca Mon Sep 17 00:00:00 2001 From: faiface Date: Wed, 3 May 2017 23:55:44 +0200 Subject: [PATCH] add Text.Atlas (Atlas has some useful stuff, e.g. line height) --- text/text.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/text/text.go b/text/text.go index 5ef5b6a..739ca32 100644 --- a/text/text.go +++ b/text/text.go @@ -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) }