@@ -209,7 +209,7 @@ def get_glyphs_with_font(self, font, s, glyph_map=None,
209209 horiz_advance = (glyph .linearHoriAdvance / 65536.0 )
210210
211211 char_id = self ._get_char_id (font , ccode )
212- if not char_id in glyph_map :
212+ if char_id not in glyph_map :
213213 glyph_map_new [char_id ] = self .glyph_to_path (font )
214214
215215 currx += (kern / 64.0 )
@@ -258,7 +258,7 @@ def get_glyphs_mathtext(self, prop, s, glyph_map=None,
258258 currx , curry = 0 , 0
259259 for font , fontsize , ccode , ox , oy in glyphs :
260260 char_id = self ._get_char_id (font , ccode )
261- if not char_id in glyph_map :
261+ if char_id not in glyph_map :
262262 font .clear ()
263263 font .set_size (self .FONT_SCALE , self .DPI )
264264 glyph = font .load_char (ccode , flags = LOAD_NO_HINTING )
@@ -371,7 +371,7 @@ def get_glyphs_tex(self, prop, s, glyph_map=None,
371371
372372 char_id = self ._get_char_id_ps (font , glyph )
373373
374- if not char_id in glyph_map :
374+ if char_id not in glyph_map :
375375 font .clear ()
376376 font .set_size (self .FONT_SCALE , self .DPI )
377377 if enc :
0 commit comments