@@ -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.
@@ -516,7 +516,7 @@ def to_rgba(self, texstr, color='black', dpi=120, fontsize=14):
516
516
RGBA [:, :, 3 ] = x
517
517
return RGBA , depth
518
518
519
- @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" )
519
+ @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " )
520
520
def to_png (self , filename , texstr , color = 'black' , dpi = 120 , fontsize = 14 ):
521
521
r"""
522
522
Render a tex expression to a PNG file.
@@ -544,7 +544,7 @@ def to_png(self, filename, texstr, color='black', dpi=120, fontsize=14):
544
544
Image .fromarray (rgba ).save (filename , format = "png" )
545
545
return depth
546
546
547
- @_api .deprecated ("3.4" , alternative = "mathtext.math_to_image" )
547
+ @_api .deprecated ("3.4" , alternative = "`. mathtext.math_to_image` " )
548
548
def get_depth (self , texstr , dpi = 120 , fontsize = 14 ):
549
549
r"""
550
550
Get the depth of a mathtext string.
0 commit comments