This topic has not yet been rated - Rate this topic

CD2DTextFormat Class

Visual Studio 2010

Updated: March 2011

Visual Studio 2010 SP1 is required.

A wrapper for IDWriteTextFormat.

class CD2DTextFormat : public CD2DResource;

Public Constructors

Name

Description

CD2DTextFormat::CD2DTextFormat

Constructs a CD2DTextFormat object.

CD2DTextFormat::~CD2DTextFormat

The destructor. Called when a D2D text format object is being destroyed.

Public Methods

Name

Description

CD2DTextFormat::Create

Creates a CD2DTextFormat. (Overrides CD2DResource::Create.)

CD2DTextFormat::Destroy

Destroys a CD2DTextFormat object. (Overrides CD2DResource::Destroy.)

CD2DTextFormat::Get

Returns IDWriteTextFormat interface

CD2DTextFormat::GetFontFamilyName

Gets a copy of the font family name.

CD2DTextFormat::GetLocaleName

Gets a copy of the locale name.

CD2DTextFormat::IsValid

Checks resource validity (Overrides CD2DResource::IsValid.)

CD2DTextFormat::ReCreate

Re-creates a CD2DTextFormat. (Overrides CD2DResource::ReCreate.)

Public Operators

Name

Description

CD2DTextFormat::operator IDWriteTextFormat*

Returns IDWriteTextFormat interface

Protected Data Members

Name

Description

CD2DTextFormat::m_pTextFormat

A pointer to an IDWriteTextFormat.

Header: afxrendertarget.h

Other Resources

Date

History

Reason

March 2011

Added this content.

SP1 feature change.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ