Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdcbb138

Browse files
committed
Deprecated classes in dviread
1 parent68d6b79 commitdcbb138

File tree

8 files changed

+847
-820
lines changed

8 files changed

+847
-820
lines changed

‎lib/matplotlib/_dviread.py

Lines changed: 762 additions & 0 deletions
Large diffs are not rendered by default.

‎lib/matplotlib/backends/backend_pdf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
frommatplotlib.font_managerimportfindfont,get_font
3737
frommatplotlib.afmimportAFM
3838
importmatplotlib.type1fontastype1font
39+
importmatplotlib._dvireadas_dviread
3940
importmatplotlib.dvireadasdviread
4041
frommatplotlib.ft2fontimport (FIXED_WIDTH,ITALIC,LOAD_NO_SCALE,
4142
LOAD_NO_HINTING,KERNING_UNFITTED,FT2Font)
@@ -891,7 +892,8 @@ def dviFontName(self, dvifont):
891892
ifdvi_infoisnotNone:
892893
returndvi_info.pdfname
893894

894-
tex_font_map=dviread.PsfontsMap(dviread._find_tex_file('pdftex.map'))
895+
tex_font_map=_dviread.PsfontsMap(
896+
_dviread._find_tex_file('pdftex.map'))
895897
psfont=tex_font_map[dvifont.texname]
896898
ifpsfont.filenameisNone:
897899
raiseValueError(
@@ -966,7 +968,7 @@ def _embedTeXFont(self, fontinfo):
966968
fontdict['Encoding']= {
967969
'Type':Name('Encoding'),
968970
'Differences': [
969-
0,*map(Name,dviread._parse_enc(fontinfo.encodingfile))],
971+
0,*map(Name,_dviread._parse_enc(fontinfo.encodingfile))],
970972
}
971973

972974
# If no file is specified, stop short

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp