@@ -209,7 +209,7 @@ def get_glyphs_with_font(self, font, s, glyph_map=None,
209
209
horiz_advance = (glyph .linearHoriAdvance / 65536.0 )
210
210
211
211
char_id = self ._get_char_id (font , ccode )
212
- if not char_id in glyph_map :
212
+ if char_id not in glyph_map :
213
213
glyph_map_new [char_id ] = self .glyph_to_path (font )
214
214
215
215
currx += (kern / 64.0 )
@@ -258,7 +258,7 @@ def get_glyphs_mathtext(self, prop, s, glyph_map=None,
258
258
currx , curry = 0 , 0
259
259
for font , fontsize , ccode , ox , oy in glyphs :
260
260
char_id = self ._get_char_id (font , ccode )
261
- if not char_id in glyph_map :
261
+ if char_id not in glyph_map :
262
262
font .clear ()
263
263
font .set_size (self .FONT_SCALE , self .DPI )
264
264
glyph = font .load_char (ccode , flags = LOAD_NO_HINTING )
@@ -371,7 +371,7 @@ def get_glyphs_tex(self, prop, s, glyph_map=None,
371
371
372
372
char_id = self ._get_char_id_ps (font , glyph )
373
373
374
- if not char_id in glyph_map :
374
+ if char_id not in glyph_map :
375
375
font .clear ()
376
376
font .set_size (self .FONT_SCALE , self .DPI )
377
377
if enc :
0 commit comments