@@ -855,7 +855,7 @@ def _get_glyph(self, fontname, font_class, sym, fontsize, math=True):
855
855
'rm' , font_class , sym , fontsize )
856
856
else :
857
857
return self .cm_fallback ._get_glyph (
858
- fontname , 'it' , sym , fontsize )
858
+ fontname , font_class , sym , fontsize )
859
859
else :
860
860
if fontname in ('it' , 'regular' ) and isinstance (self , StixFonts ):
861
861
return self ._get_glyph ('rm' , font_class , sym , fontsize )
@@ -887,12 +887,12 @@ class DejaVuFonts(UnicodeFonts):
887
887
888
888
def __init__ (self , * args , ** kwargs ):
889
889
# This must come first so the backend's owner is set correctly
890
+ TruetypeFonts .__init__ (self , * args , ** kwargs )
890
891
if isinstance (self , DejaVuSerifFonts ):
891
892
self .cm_fallback = StixFonts (* args , ** kwargs )
892
893
else :
893
894
self .cm_fallback = StixSansFonts (* args , ** kwargs )
894
895
self .bakoma = BakomaFonts (* args , ** kwargs )
895
- TruetypeFonts .__init__ (self , * args , ** kwargs )
896
896
self .fontmap = {}
897
897
# Include Stix sized alternatives for glyphs
898
898
self ._fontmap .update ({
0 commit comments