IsText returns true if the text span is text and not objects (such as images or paths).
()
| 200 | |
| 201 | // IsText returns true if the text span is text and not objects (such as images or paths). |
| 202 | func (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). |
| 207 | type TextSpanObject struct { |
no outgoing calls
no test coverage detected