RT

解决方案 »

  1.   

    我这两天把所有的文字和字体WIN32API过了一遍,没有找到相关内容,明天再细看一下
      

  2.   

    apparently, unicode and glyph index is not one-to-one, so you have to implement your own mapping to resolve the conflictfor example, seehttp://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=usfbd9XICHA.1688%40tkmsftngp09also see
    http://support.microsoft.com/default.aspx?id=241020
      

  3.   

    to bluebohe(薄荷) 
    先谢谢了!!
    to saucer(思归) 
    谢谢
    我大概看了一下,没认真看。你给的例子,应该是unicode to glyph index 而我想要的是 glyph index  to unicode
      

  4.   

    而且对于不同的字库而言unicode to glyph index 的结果应该是不同的,反之也应该一样。
      

  5.   

    like I said, the mapping between unicode and glyph index is  not 1 to 1, you know the range of Chinese characters in GB2312 in between 0x4E00-0x9fA5, so you can use GetGlyphIndices (for NT) or the method in the above link for win9* to get the all indices for the characters, but you need to do the reverse to resolve the conflict
      

  6.   

    呵呵,我发现我挺会蹭分的,不行要向思归老大学习
    我以前做了两年半关于文字的东西,就是在OPENGL下怎样才能使文字显示快且不占用内存,比如一个屏幕的两三千汉字要平滑地缩放、移动,可是到头来还是不理想。一直想清楚一下文字到底怎么搞才快
      

  7.   

    非常感谢saucer(思归) 老大!!
    老大的意思是不是要我为每个字库都要根据unicode to  glyph index,自己建立一个 glyph index to unicode 的索引?
    可是有一个问题,比如说泰语,我并不知道有那些字库,多少个字库中有泰文啊??有没有更直接的办法?
      

  8.   

    >>>有没有更直接的办法?as far as I know, Microsoft didn't provide any 直接的办法, you might want to search on Google to see if any 泰语 programmer did something like that
      

  9.   

    i see
    thanks a lot
      

  10.   

    to Richuen22(石志康) 
    老大!E文太差,不敢去啊!