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

Skip to content

Commit 946ae45

Browse files
author
Alexis Bienvenüe
committed
Reproducible PDF output: sort fonts
1 parent 4e477dc commit 946ae45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backends/backend_pdf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,8 @@ def fontName(self, fontprop):
669669

670670
def writeFonts(self):
671671
fonts = {}
672-
for filename, Fx in six.iteritems(self.fontNames):
672+
for filename in sorted(self.fontNames):
673+
Fx = self.fontNames[filename]
673674
matplotlib.verbose.report('Embedding font %s' % filename, 'debug')
674675
if filename.endswith('.afm'):
675676
# from pdf.use14corefonts

0 commit comments

Comments
 (0)