@@ -296,23 +296,23 @@ def get_glyphs_tex(self, prop, s, glyph_map=None,
296296 @functools .lru_cache (50 )
297297 def _get_ps_font_and_encoding (texname ):
298298 tex_font_map = dviread .PsfontsMap (dviread .find_tex_file ('pdftex.map' ))
299- font_bunch = tex_font_map [texname ]
300- if font_bunch .filename is None :
299+ psfont = tex_font_map [texname ]
300+ if psfont .filename is None :
301301 raise ValueError (
302- f"No usable font file found for { font_bunch .psname } "
303- f"( { texname } ). The font may lack a Type-1 version." )
302+ f"No usable font file found for { psfont .psname } ( { texname } ). "
303+ f"The font may lack a Type-1 version." )
304304
305- font = get_font (font_bunch .filename )
305+ font = get_font (psfont .filename )
306306
307- if font_bunch .encoding :
307+ if psfont .encoding :
308308 # If psfonts.map specifies an encoding, use it: it gives us a
309309 # mapping of glyph indices to Adobe glyph names; use it to convert
310310 # dvi indices to glyph names and use the FreeType-synthesized
311311 # unicode charmap to convert glyph names to glyph indices (with
312312 # FT_Get_Name_Index/get_name_index), and load the glyph using
313313 # FT_Load_Glyph/load_glyph. (That charmap has a coverage at least
314314 # as good as, and possibly better than, the native charmaps.)
315- enc = dviread ._parse_enc (font_bunch .encoding )
315+ enc = dviread ._parse_enc (psfont .encoding )
316316 else :
317317 # If psfonts.map specifies no encoding, the indices directly
318318 # map to the font's "native" charmap; so don't use the
@@ -331,7 +331,7 @@ def _get_ps_font_and_encoding(texname):
331331 break
332332 else :
333333 _log .warning ("No supported encoding in font (%s)." ,
334- font_bunch .filename )
334+ psfont .filename )
335335 enc = None
336336
337337 return font , enc
0 commit comments