if font encoding is not unicode, try glyph[ascii2glyph[c]] before glyph[c]