@@ -530,7 +530,7 @@ def _get_glyph(self, fontname, font_class, sym):
530530 except ValueError :
531531 uniindex = ord ('?' )
532532 found_symbol = False
533- _log .warning (f "No TeX to Unicode mapping for { sym !a } ." )
533+ _log .warning ("No TeX to Unicode mapping for %a." , sym )
534534
535535 fontname , uniindex = self ._map_virtual_font (
536536 fontname , font_class , uniindex )
@@ -576,9 +576,9 @@ def _get_glyph(self, fontname, font_class, sym):
576576 if (fontname in ('it' , 'regular' )
577577 and isinstance (self , StixFonts )):
578578 return self ._get_glyph ('rm' , font_class , sym )
579- _log .warning (f "Font { new_fontname !r } does not have a glyph "
580- f"for { sym !a } [U+ { uniindex :x } ], substituting "
581- "with a dummy symbol." )
579+ _log .warning ("Font %r does not have a glyph for %a [U+%x], "
580+ "substituting with a dummy symbol." ,
581+ new_fontname , sym , uniindex )
582582 font = self ._get_font ('rm' )
583583 uniindex = 0xA4 # currency char, for lack of anything better
584584 slanted = False
0 commit comments