@@ -644,8 +644,8 @@ def _write_afm_font(self, filename):
644
644
return fontdictObject
645
645
646
646
def embedTeXFont (self , texname , fontinfo ):
647
- msg = 'Embedding TeX font ' + texname + ' - fontinfo=' + \
648
- repr (fontinfo .__dict__ )
647
+ msg = ( 'Embedding TeX font ' + texname + ' - fontinfo=' +
648
+ repr (fontinfo .__dict__ ) )
649
649
matplotlib .verbose .report (msg , 'debug' )
650
650
651
651
# Widths
@@ -674,11 +674,11 @@ def embedTeXFont(self, texname, fontinfo):
674
674
# If no file is specified, stop short
675
675
if fontinfo .fontfile is None :
676
676
msg = ('Because of TeX configuration (pdftex.map, see updmap '
677
- 'option pdftexDownloadBase14) the font %s '
678
- 'is not embedded. This is deprecated as of PDF 1.5 '
679
- 'and it may cause the consumer application to show '
680
- 'something that was not intended.' )
681
- warnings .warn (msg % fontinfo . basefont )
677
+ 'option pdftexDownloadBase14) the font {0} is not '
678
+ 'embedded. This is deprecated as of PDF 1.5 and it may '
679
+ 'cause the consumer application to show something that '
680
+ 'was not intended.' ). format ( fontinfo . basefont )
681
+ warnings .warn (msg )
682
682
fontdict ['BaseFont' ] = Name (fontinfo .basefont )
683
683
self .writeObject (fontdictObject , fontdict )
684
684
return fontdictObject
0 commit comments