MCPcopy Create free account
hub / github.com/tdewolff/canvas / Add

Method Add

text.go:578–582  ·  view source on GitHub ↗
(face *FontFace, text string)

Source from the content-addressed store, hash-verified

576}
577
578func (rt *RichText) Add(face *FontFace, text string) *RichText {
579 fmt.Println("WARNING: deprecated RichText.Add, use RichText.WriteFace") // TODO: remove
580 rt.WriteFace(face, text)
581 return rt
582}
583
584func (rt *RichText) AddCanvas(c *Canvas, valign VerticalAlign) *RichText {
585 fmt.Println("WARNING: deprecated RichText.AddCanvas, use RichText.WriteCanvas") // TODO: remove

Callers

nothing calls this directly

Calls 1

WriteFaceMethod · 0.95

Tested by

no test coverage detected