(self, filename)
| 950 | self.writeObject(self.fontObject, fonts) |
| 951 | |
| 952 | def _write_afm_font(self, filename): |
| 953 | with open(filename, 'rb') as fh: |
| 954 | font = AFM(fh) |
| 955 | fontname = font.get_fontname() |
| 956 | fontdict = {'Type': Name('Font'), |
| 957 | 'Subtype': Name('Type1'), |
| 958 | 'BaseFont': Name(fontname), |
| 959 | 'Encoding': Name('WinAnsiEncoding')} |
| 960 | fontdictObject = self.reserveObject('font dictionary') |
| 961 | self.writeObject(fontdictObject, fontdict) |
| 962 | return fontdictObject |
| 963 | |
| 964 | def _embedTeXFont(self, dvifont): |
| 965 | tex_font_map = dviread.PsfontsMap(dviread.find_tex_file('pdftex.map')) |
no test coverage detected