Skip to content

Commit 76012ae

Browse files
authored
Merge pull request matplotlib#22133 from oscargus/deprecate_type1font
Deprecated `afm`, `fontconfig_pattern`, and `type1font`
2 parents 2df11cc + 1885e46 commit 76012ae

20 files changed

+1669
-1650
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
``Type1Font`` objects include more properties
22
---------------------------------------------
33

4-
The `.type1font.Type1Font.prop` dictionary now includes more keys, such
5-
as ``CharStrings`` and ``Subrs``. The value of the ``Encoding`` key is
4+
The ``matplotlib._type1font.Type1Font.prop`` dictionary now includes more keys,
5+
such as ``CharStrings`` and ``Subrs``. The value of the ``Encoding`` key is
66
now a dictionary mapping codes to glyph names. The
7-
`.type1font.Type1Font.transform` method now correctly removes
7+
``matplotlib._type1font.Type1Font.transform`` method now correctly removes
88
``UniqueID`` properties from the font.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
``AFM``, ``configfont_pattern`` and ``Type1Font`` deprecated
2+
------------------------------------------------------------
3+
4+
The modules ``matplotlib.AFM``, ``matplotlib.configfont_pattern``, and
5+
``matplotlib.Type1Font`` are considered internal and public access is
6+
deprecated.

doc/api/prev_api_changes/api_changes_0.91.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Changes for 0.91.0
3636
pfa/pfb file, to get metrics and kerning information for a Type 1
3737
font.
3838

39-
* The :class:`.AFM` class now supports querying CapHeight and stem
39+
* The ``AFM`` class now supports querying CapHeight and stem
4040
widths. The get_name_char method now has an isord kwarg like
4141
get_width_char.
4242

doc/api/prev_api_changes/api_changes_0.98.x.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Changes for 0.98.x
6363
:meth:`matplotlib.axes.Axes.set_ylim` now return a copy of the
6464
``viewlim`` array to avoid modify-in-place surprises.
6565

66-
* :meth:`matplotlib.afm.AFM.get_fullname` and
67-
:meth:`matplotlib.afm.AFM.get_familyname` no longer raise an
66+
* ``matplotlib.afm.AFM.get_fullname`` and
67+
``matplotlib.afm.AFM.get_familyname`` no longer raise an
6868
exception if the AFM file does not specify these optional
6969
attributes, but returns a guess based on the required FontName
7070
attribute.

doc/api/prev_api_changes/api_changes_3.5.0/behaviour.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ defaults to *False*.
229229

230230
Type 1 fonts have a large part of their code encrypted as an obsolete
231231
copy-protection measure. This part is now available decrypted as the
232-
``decrypted`` attribute of `~.type1font.Type1Font`. This decrypted data is not
233-
yet parsed, but this is a prerequisite for implementing subsetting.
232+
``decrypted`` attribute of ``matplotlib.type1font.Type1Font``. This decrypted
233+
data is not yet parsed, but this is a prerequisite for implementing subsetting.
234234

235235
3D contourf polygons placed between levels
236236
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)