@@ -179,15 +179,15 @@ def get_hinting_type(self):
179179        return  backend_agg .get_hinting_flag ()
180180
181181
182- @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" ) 
182+ @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " ) 
183183class  MathtextBackendBitmap (MathtextBackendAgg ):
184184    def  get_results (self , box , used_characters ):
185185        ox , oy , width , height , depth , image , characters  =  \
186186            super ().get_results (box , used_characters )
187187        return  image , depth 
188188
189189
190- @_api .deprecated ("3.4" , alternative = "MathtextBackendPath" ) 
190+ @_api .deprecated ("3.4" , alternative = "`. MathtextBackendPath` " ) 
191191class  MathtextBackendPs (MathtextBackend ):
192192    """ 
193193    Store information to write a mathtext rendering to the PostScript backend. 
@@ -231,7 +231,7 @@ def get_results(self, box, used_characters):
231231                              used_characters )
232232
233233
234- @_api .deprecated ("3.4" , alternative = "MathtextBackendPath" ) 
234+ @_api .deprecated ("3.4" , alternative = "`. MathtextBackendPath` " ) 
235235class  MathtextBackendPdf (MathtextBackend ):
236236    """Store information to write a mathtext rendering to the PDF backend.""" 
237237
@@ -263,7 +263,7 @@ def get_results(self, box, used_characters):
263263                               used_characters )
264264
265265
266- @_api .deprecated ("3.4" , alternative = "MathtextBackendPath" ) 
266+ @_api .deprecated ("3.4" , alternative = "`. MathtextBackendPath` " ) 
267267class  MathtextBackendSvg (MathtextBackend ):
268268    """ 
269269    Store information to write a mathtext rendering to the SVG 
@@ -324,7 +324,7 @@ def get_results(self, box, used_characters):
324324                            self .rects )
325325
326326
327- @_api .deprecated ("3.4" , alternative = "MathtextBackendPath" ) 
327+ @_api .deprecated ("3.4" , alternative = "`. MathtextBackendPath` " ) 
328328class  MathtextBackendCairo (MathtextBackend ):
329329    """ 
330330    Store information to write a mathtext rendering to the Cairo 
@@ -457,7 +457,7 @@ def _parse_cached(self, s, dpi, prop, force_standard_ps_fonts):
457457        font_output .set_canvas_size (box .width , box .height , box .depth )
458458        return  font_output .get_results (box )
459459
460-     @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" ) 
460+     @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " ) 
461461    def  to_mask (self , texstr , dpi = 120 , fontsize = 14 ):
462462        r""" 
463463        Convert a mathtext string to a grayscale array and depth. 
@@ -483,7 +483,7 @@ def to_mask(self, texstr, dpi=120, fontsize=14):
483483        ftimage , depth  =  self .parse (texstr , dpi = dpi , prop = prop )
484484        return  np .asarray (ftimage ), depth 
485485
486-     @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" ) 
486+     @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " ) 
487487    def  to_rgba (self , texstr , color = 'black' , dpi = 120 , fontsize = 14 ):
488488        r""" 
489489        Convert a mathtext string to an RGBA array and depth. 
@@ -512,7 +512,7 @@ def to_rgba(self, texstr, color='black', dpi=120, fontsize=14):
512512        rgba [:, :, 3 ] =  alpha 
513513        return  rgba , depth 
514514
515-     @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" ) 
515+     @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " ) 
516516    def  to_png (self , filename , texstr , color = 'black' , dpi = 120 , fontsize = 14 ):
517517        r""" 
518518        Render a tex expression to a PNG file. 
@@ -540,7 +540,7 @@ def to_png(self, filename, texstr, color='black', dpi=120, fontsize=14):
540540        Image .fromarray (rgba ).save (filename , format = "png" )
541541        return  depth 
542542
543-     @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" ) 
543+     @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " ) 
544544    def  get_depth (self , texstr , dpi = 120 , fontsize = 14 ):
545545        r""" 
546546        Get the depth of a mathtext string. 
0 commit comments