FontFamily::FontFamily(constWCHAR*,constFontCollection*) method (gdiplusheaders.h)

Creates a FontFamily::FontFamily object based on a specified font family.

Syntax

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

Parameters

[in] name

Type: const WCHAR*

Name of the font family. For example, Arial.ttf is the name of the Arial font family.

[in] fontCollection

Type: const FontCollection*

Optional. Pointer to a FontCollection object that specifies the collection that the font family belongs to. If FontCollection is NULL, this font family is not part of a collection. The default value is NULL.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplusheaders.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

FontFamily

InstalledFontCollection

PrivateFontCollection

Using Text and Fonts