@@ -179,15 +179,15 @@ def get_hinting_type(self):
179
179
return backend_agg .get_hinting_flag ()
180
180
181
181
182
- @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" )
182
+ @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " )
183
183
class MathtextBackendBitmap (MathtextBackendAgg ):
184
184
def get_results (self , box , used_characters ):
185
185
ox , oy , width , height , depth , image , characters = \
186
186
super ().get_results (box , used_characters )
187
187
return image , depth
188
188
189
189
190
- @_api .deprecated ("3.4" , alternative = "MathtextBackendPath" )
190
+ @_api .deprecated ("3.4" , alternative = "`. MathtextBackendPath` " )
191
191
class MathtextBackendPs (MathtextBackend ):
192
192
"""
193
193
Store information to write a mathtext rendering to the PostScript backend.
@@ -231,7 +231,7 @@ def get_results(self, box, used_characters):
231
231
used_characters )
232
232
233
233
234
- @_api .deprecated ("3.4" , alternative = "MathtextBackendPath" )
234
+ @_api .deprecated ("3.4" , alternative = "`. MathtextBackendPath` " )
235
235
class MathtextBackendPdf (MathtextBackend ):
236
236
"""Store information to write a mathtext rendering to the PDF backend."""
237
237
@@ -263,7 +263,7 @@ def get_results(self, box, used_characters):
263
263
used_characters )
264
264
265
265
266
- @_api .deprecated ("3.4" , alternative = "MathtextBackendPath" )
266
+ @_api .deprecated ("3.4" , alternative = "`. MathtextBackendPath` " )
267
267
class MathtextBackendSvg (MathtextBackend ):
268
268
"""
269
269
Store information to write a mathtext rendering to the SVG
@@ -324,7 +324,7 @@ def get_results(self, box, used_characters):
324
324
self .rects )
325
325
326
326
327
- @_api .deprecated ("3.4" , alternative = "MathtextBackendPath" )
327
+ @_api .deprecated ("3.4" , alternative = "`. MathtextBackendPath` " )
328
328
class MathtextBackendCairo (MathtextBackend ):
329
329
"""
330
330
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):
457
457
font_output .set_canvas_size (box .width , box .height , box .depth )
458
458
return font_output .get_results (box )
459
459
460
- @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" )
460
+ @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " )
461
461
def to_mask (self , texstr , dpi = 120 , fontsize = 14 ):
462
462
r"""
463
463
Convert a mathtext string to a grayscale array and depth.
@@ -483,7 +483,7 @@ def to_mask(self, texstr, dpi=120, fontsize=14):
483
483
ftimage , depth = self .parse (texstr , dpi = dpi , prop = prop )
484
484
return np .asarray (ftimage ), depth
485
485
486
- @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" )
486
+ @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " )
487
487
def to_rgba (self , texstr , color = 'black' , dpi = 120 , fontsize = 14 ):
488
488
r"""
489
489
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):
512
512
rgba [:, :, 3 ] = alpha
513
513
return rgba , depth
514
514
515
- @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" )
515
+ @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " )
516
516
def to_png (self , filename , texstr , color = 'black' , dpi = 120 , fontsize = 14 ):
517
517
r"""
518
518
Render a tex expression to a PNG file.
@@ -540,7 +540,7 @@ def to_png(self, filename, texstr, color='black', dpi=120, fontsize=14):
540
540
Image .fromarray (rgba ).save (filename , format = "png" )
541
541
return depth
542
542
543
- @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" )
543
+ @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " )
544
544
def get_depth (self , texstr , dpi = 120 , fontsize = 14 ):
545
545
r"""
546
546
Get the depth of a mathtext string.
0 commit comments