我已经用EnumFontFamilies得到了当前系统的所有字体,那怎样判断哪些是TrueType字体呢?

解决方案 »

  1.   

    int CALLBACK EnumFontFamProc(
      ENUMLOGFONT *lpelf,    // logical-font data
      NEWTEXTMETRIC *lpntm,  // physical-font data
      DWORD FontType,        // type of font
      LPARAM lParam          // application-defined data
    );
    FontType 
    [in] Specifies the type of the font. This parameter can be a combination of the following values: 
    DEVICE_FONTTYPE
    RASTER_FONTTYPE
    TRUETYPE_FONTTYPE 
      

  2.   

    判断类型是否为:
    DEVICE_FONTTYPE
    RASTER_FONTTYPE
    TRUETYPE_FONTTYPE