|
1 | 1 | Removal of deprecated ``mathtext`` APIs |
2 | 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
3 | 3 |
|
4 | | -The following :mod:`.mathtext` APIs have been removed: |
5 | | -``MathtextBackendBitmap``, |
6 | | -``MathtextBackendPs``, |
7 | | -``MathtextBackendPdf``, |
8 | | -``MathtextBackendSvg``, |
9 | | -``MathtextBackendCairo``, |
10 | | -``ship``, |
11 | | -``Fonts``, |
12 | | -``TruetypeFonts``, |
13 | | -``StandardPsFonts``, |
14 | | -``FontConstantsBase``, |
15 | | -``ComputerModernFontConstants``, |
16 | | -``STIXFontConstants``, |
17 | | -``STIXSansFontConstants``, |
18 | | -``DejaVuSerifFontConstants``, |
19 | | -``DejaVuSansFontConstants``, |
20 | | -``FontConstantsBase``, |
21 | | -``Node``, |
22 | | -``Box``, |
23 | | -``Char``, |
24 | | -``Glue``, |
25 | | -``Kern``, |
26 | | -``Ship``, |
27 | | -``Parser``, |
28 | | -``SHRINK_FACTOR``, |
29 | | -``GROW_FACTOR``, |
30 | | -``NUM_SIZE_LEVELS``, |
31 | | -``latex_to_bakoma``, |
32 | | -``latex_to_cmex``, |
33 | | -``latex_to_standard``, |
34 | | -``stix_virtual_fonts``, and |
35 | | -``tex2uni`` |
| 4 | +The following `matplotlib.mathtext` APIs have been removed: |
| 5 | +- ``Fonts`` and all its subclasses, |
| 6 | +- ``FontConstantsBase`` and all its subclasses, |
| 7 | +- ``Node`` and all its subclasses, |
| 8 | +- ``Ship``, ``ship``, |
| 9 | +- ``Error``, |
| 10 | +- ``Parser``, |
| 11 | +- ``SHRINK_FACTOR``, ``GROW_FACTOR``, |
| 12 | +- ``NUM_SIZE_LEVELS``, |
| 13 | +- ``latex_to_bakoma``, ``latex_to_cmex``, ``latex_to_standard``, |
| 14 | +- ``stix_virtual_fonts``, |
| 15 | +- ``tex2uni`` |
36 | 16 |
|
37 | | -The methods ``to_mask``, ``to_rgba``, ``to_png``, and ``get_depth`` of |
38 | | -``MathTextParser`` have been removed. Use ``mathtext.math_to_image`` instead. |
| 17 | +Removal of various ``mathtext`` helpers |
| 18 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 19 | + |
| 20 | +The following `matplotlib.mathtext` classes: |
| 21 | +- ``MathtextBackendPdf``, |
| 22 | +- ``MathtextBackendPs``, |
| 23 | +- ``MathtextBackendSvg``, |
| 24 | +- ``MathtextBackendCairo``, |
| 25 | +and the ``.mathtext_parser`` attributes on |
| 26 | +- `.RendererPdf`, |
| 27 | +- `.RendererPS`, |
| 28 | +- `.RendererSVG`, |
| 29 | +- `.RendererCairo` |
| 30 | +have been removed. The `.MathtextBackendPath` class can be used instead. |
| 31 | + |
| 32 | +The methods ``get_depth``, ``parse``, ``to_mask``, ``to_rgba``, and ``to_png`` |
| 33 | +of `.MathTextParser` have been removed. Use `.mathtext.math_to_image` instead. |
| 34 | + |
| 35 | +The unused ``StandardPsFonts.pswriter`` has been removed. |
39 | 36 |
|
40 | | -The named keyword argument ``_force_standard_ps_fonts`` of |
41 | | -``MathTextParser.parse`` has been removed. |
| 37 | +``ps.useafm`` removed for ``mathtext`` |
| 38 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
42 | 39 |
|
43 | | -The following :mod:.`_mathtext` APIs have been removed: |
44 | | -``Fonts.destroy()``, ``TruetypeFonts.destroy()``, and ``StandardPsFonts.pswriter()`` |
| 40 | +The setting :rc:`ps.useafm` no longer has any effect on `matplotlib.mathtext`. |
0 commit comments