本帖最后由 geniusice18 于 2011-09-22 10:37:47 编辑

解决方案 »

  1.   


    有这个文件 方正静蕾简体.ttf
      

  2.   

    可能是因为你用了FR_PRIVATE属性,
    FR_PRIVATE Specifies that only the process that called the AddFontResourceEx function can use this font. When the font name matches a public font, the private font will be chosen. When the process terminates, the system will remove all fonts installed by the process with the AddFontResourceEx function.
     把他去掉试试
      

  3.   


    FR_NOT_ENUM 用了这个也不行
    AddFontResource 也试了 不行
      

  4.   

    你是要AddFontResourceEx()之后,其它进程也能使用这个字体么?这个函数安装的字体只能应用到当前进程中。如果是这样的话,你必须修改注册表:"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Fonts"