printCharacters.py 336 B

123456789101112131415161718
  1. font = CurrentFont()
  2. unichars = u""
  3. for glyph in font.glyphOrder:
  4. unis = font[glyph].unicodes
  5. if unis:
  6. if len(unis) == 1:
  7. uni = unis[0]
  8. try:
  9. unichars += unichr(uni)
  10. except ValueError:
  11. pass #print hex(uni)