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

Method IsText

text.go:202–204  ·  view source on GitHub ↗

IsText returns true if the text span is text and not objects (such as images or paths).

()

Source from the content-addressed store, hash-verified

200
201// IsText returns true if the text span is text and not objects (such as images or paths).
202func (span *TextSpan) IsText() bool {
203 return len(span.Objects) == 0
204}
205
206// TextSpanObject is an object that can be used within a text span. It is a wrapper around Canvas and can thus draw anything to be mixed with text, such as images (emoticons) or paths (symbols).
207type TextSpanObject struct {

Callers 4

HeightsMethod · 0.80
renderLineToMethod · 0.80
RenderTextMethod · 0.80
RenderTextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected