@@ -69,7 +69,7 @@ def get_text_width_height_descent(self, s, prop, ismath):
6969 d /= 64.0
7070 return w * scale , h * scale , d * scale
7171
72- def get_text_path (self , prop , s , ismath = False ):
72+ def get_text_path (self , prop , s , ismath = False , language = None ):
7373 """
7474 Convert text *s* to path (a tuple of vertices and codes for
7575 matplotlib.path.Path).
@@ -109,7 +109,8 @@ def get_text_path(self, prop, s, ismath=False):
109109 glyph_info , glyph_map , rects = self .get_glyphs_tex (prop , s )
110110 elif not ismath :
111111 font = self ._get_font (prop )
112- glyph_info , glyph_map , rects = self .get_glyphs_with_font (font , s )
112+ glyph_info , glyph_map , rects = self .get_glyphs_with_font (font , s ,
113+ language = language )
113114 else :
114115 glyph_info , glyph_map , rects = self .get_glyphs_mathtext (prop , s )
115116
@@ -130,7 +131,7 @@ def get_text_path(self, prop, s, ismath=False):
130131 return verts , codes
131132
132133 def get_glyphs_with_font (self , font , s , glyph_map = None ,
133- return_new_glyphs_only = False ):
134+ return_new_glyphs_only = False , language = None ):
134135 """
135136 Convert string *s* to vertices and codes using the provided ttf font.
136137 """
@@ -145,7 +146,7 @@ def get_glyphs_with_font(self, font, s, glyph_map=None,
145146
146147 xpositions = []
147148 glyph_ids = []
148- for item in _text_helpers .layout (s , font ):
149+ for item in _text_helpers .layout (s , font , language ):
149150 char_id = self ._get_char_id (item .ft_object , ord (item .char ))
150151 glyph_ids .append (char_id )
151152 xpositions .append (item .x )
0 commit comments