MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / text_get_vertices_codes

Method text_get_vertices_codes

site-packages/matplotlib/textpath.py:549–563  ·  view source on GitHub ↗

convert the string *s* to vertices and codes using the provided font property *prop*. Mostly copied from backend_svg.py.

(self, prop, s, usetex)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.95

Calls 2

is_math_textMethod · 0.95
get_text_pathMethod · 0.80

Tested by

no test coverage detected