勇芳软件工作室.汉化:  GDI+ Flat API > Font Functions >

GdipPrivateAddFontFile

Previous pageReturn to chapter overviewNext page

描述

 

将字体文件添加到此专用字体集合。

 

C++ 语法

 

GpStatus WINGDIPAPI GdipPrivateAddFontFile(

   GpFontCollection* fontCollection,

   GDIPCONST WCHAR* filename

);

 

PowerBASIC 语法

 

FUNCTION GdipPrivateAddFontFile ( _

   BYVAL fontCollection AS DWORD, _

   BYREF filename AS WSTRINGZ _

) AS LONG

 

参数

 

fontCollection

 

[in]指向字体集合对象的指针。

 

filename

 

[in]指向指定字体文件名称的以null结尾的unicode字符串的指针。

 

返回值

 

如果函数成功,则返回Ok,它是状态枚举的一个元素。

 

如果函数失败,它返回状态枚举的其他元素之一。