|
36 | 36 | from matplotlib.font_manager import findfont, get_font
|
37 | 37 | from matplotlib.afm import AFM
|
38 | 38 | import matplotlib.type1font as type1font
|
| 39 | +import matplotlib._dviread as _dviread |
39 | 40 | import matplotlib.dviread as dviread
|
40 | 41 | from matplotlib.ft2font import (FIXED_WIDTH, ITALIC, LOAD_NO_SCALE,
|
41 | 42 | LOAD_NO_HINTING, KERNING_UNFITTED, FT2Font)
|
@@ -891,7 +892,8 @@ def dviFontName(self, dvifont):
|
891 | 892 | if dvi_info is not None:
|
892 | 893 | return dvi_info.pdfname
|
893 | 894 |
|
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')) |
895 | 897 | psfont = tex_font_map[dvifont.texname]
|
896 | 898 | if psfont.filename is None:
|
897 | 899 | raise ValueError(
|
@@ -966,7 +968,7 @@ def _embedTeXFont(self, fontinfo):
|
966 | 968 | fontdict['Encoding'] = {
|
967 | 969 | 'Type': Name('Encoding'),
|
968 | 970 | 'Differences': [
|
969 |
| - 0, *map(Name, dviread._parse_enc(fontinfo.encodingfile))], |
| 971 | + 0, *map(Name, _dviread._parse_enc(fontinfo.encodingfile))], |
970 | 972 | }
|
971 | 973 |
|
972 | 974 | # If no file is specified, stop short
|
|
0 commit comments