Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10135bf

Browse files
committed
Document minor API changes
And add an underscore in the beginning of the method whose signature changes.
1 parent 5ba21b0 commit 10135bf

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Changes to PDF backend methods
2+
``````````````````````````````
3+
4+
The methods `embedTeXFont` and `tex_font_mapping` of
5+
`matplotlib.backend_pdf.PdfFile` have been removed.
6+
It is unlikely that external users would have called
7+
these methods, which are related to the font system
8+
internal to the PDF backend.

lib/matplotlib/backends/backend_pdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ def writeFonts(self):
711711
Fx = info.pdfname
712712
matplotlib.verbose.report('Embedding Type-1 font %s from dvi'
713713
% dviname, 'debug')
714-
fonts[Fx] = self.embedTeXFont(info)
714+
fonts[Fx] = self._embedTeXFont(info)
715715
for filename in sorted(self.fontNames):
716716
Fx = self.fontNames[filename]
717717
matplotlib.verbose.report('Embedding font %s' % filename, 'debug')
@@ -740,7 +740,7 @@ def _write_afm_font(self, filename):
740740
self.writeObject(fontdictObject, fontdict)
741741
return fontdictObject
742742

743-
def embedTeXFont(self, fontinfo):
743+
def _embedTeXFont(self, fontinfo):
744744
msg = ('Embedding TeX font {0} - fontinfo={1}'
745745
.format(fontinfo.dvifont.texname, fontinfo.__dict__))
746746
matplotlib.verbose.report(msg, 'debug')

0 commit comments

Comments
 (0)