def setUnicodeValue(glyph, glyphList):
 if (glyph.name in glyphList):
  glyph.unicode = int(glyphList[glyph.name], 16)
 else:
  uvNameMatch = re.match('uni([\\dA-F]{4})$', glyph.name)
  if uvNameMatch:
   glyph.unicode = int(uvNameMatch.group(1), 16)

def setUnicodeValue ( glyph , glyphList ) : if ( glyph . name in glyphList ) : glyph . unicode = int ( glyphList [ glyph . name ] , 16 ) else : uvNameMatch = re . match ( 'uni([\\dA-F]{4})$' , glyph . name ) if uvNameMatch : glyph . unicode = int ( uvNameMatch . group ( 1 ) , 16 )
try to ensure glyph has a unicode value -- used by fdk to make otfs .