From e11622c1541032cd63599f24b88905d7e1648578 Mon Sep 17 00:00:00 2001 From: Jason Kingsbury Date: Tue, 10 Jan 2017 14:25:06 +0000 Subject: [PATCH] render box labels directly to renderer --- draw.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/draw.go b/draw.go index e06462e..dfa05ba 100644 --- a/draw.go +++ b/draw.go @@ -288,7 +288,7 @@ func (d draw) TextWithin(r Renderer, text string, box Box, style Style) { ty = y } - d.Text(r, line, tx, ty, style) + r.Text(line, tx, ty) y += lineBox.Height() + style.GetTextLineSpacing() } }