Share via


FontFamily.FontFamily(const WCHAR*, const FontCollection*) constructor

Applies to: desktop apps only

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

Syntax

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

Parameters

  • name [in]
    Type: const WCHAR*

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

  • fontCollection [in]
    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.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Product

GDI+ 1.0

Header

Gdiplusheaders.h (include Gdiplus.h)

Library

Gdiplus.lib

DLL

Gdiplus.dll

See also

FontFamily

InstalledFontCollection

PrivateFontCollection

Using Text and Fonts

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012