Draw the sOrBs text string, can be a str or BabelString, including a DrawBot FormattedString in rectangle r.
(self, sOrBs, r)
| 405 | self._drawing.add(t) |
| 406 | |
| 407 | def textBox(self, sOrBs, r): |
| 408 | """Draw the sOrBs text string, can be a str or BabelString, including a |
| 409 | DrawBot FormattedString in rectangle r.""" |
| 410 | if not isinstance(sOrBs, str): |
| 411 | sOrBs = sOrBs.s # Assume here is's a BabelString with a FormattedString inside. |
| 412 | x, y, w, h = r |
| 413 | t = self._drawing.text(sOrBs, insert=point2D(upt(x, y)), |
| 414 | stroke=self._svgStroke, stroke_width=upt(self._strokeWidth), |
| 415 | fill=self._svgFill, font_size=upt(self._fontSize), font_family=self._font) |
| 416 | self._drawing.add(t) |
| 417 | |
| 418 | def textOverflow(self, sOrBs, box, align=None): |
| 419 | pass |
no test coverage detected