update test code, still need to clarify why cannot get glyph index from font file.