MCPcopy Index your code
hub / github.com/tdewolff/canvas / RenderTextTo

Method RenderTextTo

text.go:1244–1248  ·  view source on GitHub ↗
(r Renderer, m Matrix, resolution Resolution)

Source from the content-addressed store, hash-verified

1242}
1243
1244func (t *Text) RenderTextTo(r Renderer, m Matrix, resolution Resolution) {
1245 for index := range t.lines {
1246 t.renderLineTo(r, m, resolution, index, true, false)
1247 }
1248}
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.
1251func (t *Text) RenderTo(r Renderer, m Matrix, resolution Resolution) {

Callers

nothing calls this directly

Calls 1

renderLineToMethod · 0.95

Tested by

no test coverage detected