@@ -69,7 +69,7 @@ def get_text_width_height_descent(self, s, prop, ismath):
6969d /= 64.0
7070return 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):
109109glyph_info ,glyph_map ,rects = self .get_glyphs_tex (prop ,s )
110110elif not ismath :
111111font = 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 )
113114else :
114115glyph_info ,glyph_map ,rects = self .get_glyphs_mathtext (prop ,s )
115116
@@ -130,7 +131,7 @@ def get_text_path(self, prop, s, ismath=False):
130131return verts ,codes
131132
132133def 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
146147xpositions = []
147148glyph_ids = []
148- for item in _text_helpers .layout (s ,font ):
149+ for item in _text_helpers .layout (s ,font , language ):
149150char_id = self ._get_char_id (item .ft_object ,ord (item .char ))
150151glyph_ids .append (char_id )
151152xpositions .append (item .x )