RenderTo renders the text and its decorations converted to paths, calling r.RenderPath on the renderer. Note that text lines are drawn downwards starting at the origin, that is along negative Y. The origin is thus the top-left corner of the text box.
(r Renderer, m Matrix, resolution Resolution)
| 1249 | |
| 1250 | // RenderTo renders the text and its decorations converted to paths, calling r.RenderPath on the renderer. Note that text lines are drawn downwards starting at the origin, that is along negative Y. The origin is thus the top-left corner of the text box. |
| 1251 | func (t *Text) RenderTo(r Renderer, m Matrix, resolution Resolution) { |
| 1252 | for index := range t.lines { |
| 1253 | t.renderLineTo(r, m, resolution, index, true, true) |
| 1254 | } |
| 1255 | } |
| 1256 | |
| 1257 | func (t *Text) renderLineTo(r Renderer, m Matrix, resolution Resolution, index int, renderText, renderDeco bool) { |
| 1258 | line := t.lines[index] |
no test coverage detected