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

Skip to content

Commit 1d3a628

Browse files
committed
Cleanup texmanager.
- remove check for "old" cache (the location changed in efa9ea6 (2005)). - postscriptd and pscnt are unused since c0d6110 (2006), deprecate them. - make_ps and make_ps_bbox are unused since 310e707 (2009), deprecate them. - calling \usepackage more than once with the same package does nothing (as a repeated import in Python) so no need to remove calls to \usepackage{type1cm}. - replace DEBUG by _log.debug where appropriate; other cases (forcing file regeneration) can be handled by manually deleting the old file. Various other minor cleanups.
1 parent 32a67d3 commit 1d3a628

File tree

3 files changed

+146
-242
lines changed

3 files changed

+146
-242
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ def dviFontName(self, dvifont):
686686
psfont = self.texFontMap[dvifont.texname]
687687
if psfont.filename is None:
688688
raise ValueError(
689-
("No usable font file found for {0} (TeX: {1}). "
690-
"The font may lack a Type-1 version.")
689+
"No usable font file found for {} (TeX: {}); "
690+
"the font may lack a Type-1 version"
691691
.format(psfont.psname, dvifont.texname))
692692

693693
pdfname = Name('F%d' % self.nextFont)

0 commit comments

Comments
 (0)