convert the string *s* to vertices and codes using the provided font property *prop*. Mostly copied from backend_svg.py.
(self, prop, s, usetex)
| 547 | return s.replace(r'\$', '$'), False |
| 548 | |
| 549 | def text_get_vertices_codes(self, prop, s, usetex): |
| 550 | """ |
| 551 | convert the string *s* to vertices and codes using the |
| 552 | provided font property *prop*. Mostly copied from |
| 553 | backend_svg.py. |
| 554 | """ |
| 555 | |
| 556 | if usetex: |
| 557 | verts, codes = text_to_path.get_text_path(prop, s, usetex=True) |
| 558 | else: |
| 559 | clean_line, ismath = self.is_math_text(s) |
| 560 | verts, codes = text_to_path.get_text_path(prop, clean_line, |
| 561 | ismath=ismath) |
| 562 | |
| 563 | return verts, codes |
no test coverage detected