def test_font_glyph():
 sys_fonts = (set(list_fonts()) - set(_vispy_fonts))
 assert_true((len(sys_fonts) > 0))
 for face in (['OpenSans'] + sorted(list(sys_fonts))):
  print face
  font_dict = dict(face=face, size=12, bold=False, italic=False)
  glyphs_dict = dict()
  chars = 'foobar^C&#'
  for char in chars:
   with warnings.catch_warnings(record=True):
    warnings.simplefilter('always')
    _load_glyph(font_dict, char, glyphs_dict)
  assert_equal(len(glyphs_dict), np.unique([c for c in chars]).size)

def test_font_glyph ( ) : sys_fonts = ( set ( list_fonts ( ) ) - set ( _vispy_fonts ) ) assert_true ( ( len ( sys_fonts ) > 0 ) ) for face in ( [ 'OpenSans' ] + sorted ( list ( sys_fonts ) ) ) : print face font_dict = dict ( face = face , size = 12 , bold = False , italic = False ) glyphs_dict = dict ( ) chars = 'foobar^C&#' for char in chars : with warnings . catch_warnings ( record = True ) : warnings . simplefilter ( 'always' ) _load_glyph ( font_dict , char , glyphs_dict ) assert_equal ( len ( glyphs_dict ) , np . unique ( [ c for c in chars ] ) . size )
test loading glyphs .