render box labels directly to renderer

This commit is contained in:
Jason Kingsbury 2017-01-10 14:25:06 +00:00
parent 21986dbce7
commit e11622c154

View File

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