Skip to content

Latest commit

 

History

History
60 lines (39 loc) · 1.13 KB

GdipCreateFontFamilyFromName.md

File metadata and controls

60 lines (39 loc) · 1.13 KB

Home

Function name : GdipCreateFontFamilyFromName

Group: GDI+ Font - Library: gdiplus


Creates a FontFamily handle based on specified font family name.


Code examples:

Custom GDI+ class

Declaration:

GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(
	GDIPCONST WCHAR *name,
	GpFontCollection *fontCollection,
	GpFontFamily **FontFamily
)
  

FoxPro declaration:

DECLARE INTEGER GdipCreateFontFamilyFromName IN gdiplus;
	STRING    familyname,;
	INTEGER   fontCollection,;
	INTEGER @ FontFamily
  

Parameters:

familyname [in] Name of the font family.

fontCollection [in] Optional. FontCollection handle that specifies the collection that the font family belongs to.

FontFamily [out] Handle to the FontFamily object.


Return value:

Returns 0 on success.


Comments:

When you no longer need the FontFamily handle, call the GdipDeleteFontFamily function.