FontFamily::FontFamily (constWCHAR*,constFontCollection*) 方法 (gdiplusheaders.h)

根據指定的字型系列建立 FontFamily::FontFamily 物件。

語法

void FontFamily(
  [in] const WCHAR          *name,
  [in] const FontCollection *fontCollection
);

參數

[in] name

類型: const WCHAR*

字型家族的名稱。 例如,Arial.ttf 是 Arial 字型系列的名稱。

[in] fontCollection

類型:const FontCollection*

選擇性。 FontCollection物件的指標,指定字型系列所屬的集合。 如果 FontCollectionNull,這個字型系列不是集合的一部分。 預設值是 NULL

傳回值

需求

   
最低支援的用戶端 Windows XP、Windows 2000 Professional [僅限桌面應用程式]
最低支援的伺服器 Windows 2000 Server [僅限桌面應用程式]
目標平台 Windows
標頭 gdiplusheaders.h (包含 Gdiplus.h)
程式庫 Gdiplus.lib
Dll Gdiplus.dll

另請參閱

FontFamily

InstalledFontCollection

PrivateFontCollection

使用文字和字型