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

Method glyph_to_path

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

convert the ft2font glyph to vertices and codes.

(self, font, currx=0.)

Source from the content-addressed store, hash-verified

66 return char_id
67
68 def glyph_to_path(self, font, currx=0.):
69 """
70 convert the ft2font glyph to vertices and codes.
71 """
72 verts, codes = font.get_path()
73 if currx != 0.0:
74 verts[:, 0] += currx
75 return verts, codes
76
77 def get_text_width_height_descent(self, s, prop, ismath):
78 if rcParams['text.usetex']:

Callers 3

get_glyphs_with_fontMethod · 0.95
get_glyphs_mathtextMethod · 0.95
get_glyphs_texMethod · 0.95

Calls 1

get_pathMethod · 0.45

Tested by

no test coverage detected