TTF文档中写了关于CMAP表的一些内容,可能是英文不太好,看的有点糊涂,实际查看字库文件好象不太一致。谢谢大家,帮帮忙,很急的,有现成代码最好了,高分相送。

解决方案 »

  1.   

    是不是这个函数呢?GetGlyphIndices,
    DWORD GetGlyphIndices(
      HDC hdc,       // handle to DC
      LPCTSTR lpstr, // string to convert
      int c,         // number of characters in string
      LPWORD pgi,    // array of glyph indices
      DWORD fl       // glyph options
    );
    translates a string into an array of glyph indices. The function can be used to determine whether a glyph exists in a font.
      Windows NT/2000 or later: Requires Windows 2000 or later.
      Windows 95/98/Me: Unsupported.
      Header: Declared in Wingdi.h; include Windows.h.
      Library: Use Gdi32.lib.
      Unicode: Implemented as Unicode and ANSI versions on Windows 2000.
      

  2.   

    对不起,我忘了说,直接从TTF文件中读去,和平台无关。