'Return a unique id for the given font and character-code set (for tex).'

def _get_char_id_ps(self, font, ccode):

    ps_name = font.get_ps_font_info()[2]
    char_id = urllib_quote((u'%s-%d' % (ps_name, ccode)))
    return char_id
