[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextFormat.Create

Create Method

Create(Factory, string, float)

Creates a text format object used for text layout with normal weight, style and stretch.

Declaration
public static TextFormat Create(Factory factory, string fontFamilyName, float fontSize)
Parameters
Type Name Description
Factory factory

an instance of Factory

string fontFamilyName

An array of characters that contains the name of the font family

float fontSize

The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch.

Returns
Type Description
TextFormat

Create(Factory, string, FontWeight, FontStyle, float)

Creates a text format object used for text layout with normal stretch.

Declaration
public static TextFormat Create(Factory factory, string fontFamilyName, FontWeight fontWeight, FontStyle fontStyle, float fontSize)
Parameters
Type Name Description
Factory factory

an instance of Factory

string fontFamilyName

An array of characters that contains the name of the font family

FontWeight fontWeight

A value that indicates the font weight for the text object created by this method.

FontStyle fontStyle

A value that indicates the font style for the text object created by this method.

float fontSize

The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch.

Returns
Type Description
TextFormat

Create(Factory, string, FontWeight, FontStyle, FontStretch, float)

Creates a text format object used for text layout.

Declaration
public static TextFormat Create(Factory factory, string fontFamilyName, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize)
Parameters
Type Name Description
Factory factory

an instance of Factory

string fontFamilyName

An array of characters that contains the name of the font family

FontWeight fontWeight

A value that indicates the font weight for the text object created by this method.

FontStyle fontStyle

A value that indicates the font style for the text object created by this method.

FontStretch fontStretch

A value that indicates the font stretch for the text object created by this method.

float fontSize

The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch.

Returns
Type Description
TextFormat

Create(Factory, string, FontCollection, FontWeight, FontStyle, FontStretch, float)

Creates a text format object used for text layout.

Declaration
public static TextFormat Create(Factory factory, string fontFamilyName, FontCollection fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize)
Parameters
Type Name Description
Factory factory

an instance of Factory

string fontFamilyName

An array of characters that contains the name of the font family

FontCollection fontCollection

A pointer to a font collection object. When this is NULL, indicates the system font collection.

FontWeight fontWeight

A value that indicates the font weight for the text object created by this method.

FontStyle fontStyle

A value that indicates the font style for the text object created by this method.

FontStretch fontStretch

A value that indicates the font stretch for the text object created by this method.

float fontSize

The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch.

Returns
Type Description
TextFormat

Create(Factory, string, FontCollection, FontWeight, FontStyle, FontStretch, float, string)

Creates a text format object used for text layout.

Declaration
public static TextFormat Create(Factory factory, string fontFamilyName, FontCollection fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, string localeName)
Parameters
Type Name Description
Factory factory

an instance of Factory

string fontFamilyName

An array of characters that contains the name of the font family

FontCollection fontCollection

A pointer to a font collection object. When this is NULL, indicates the system font collection.

FontWeight fontWeight

A value that indicates the font weight for the text object created by this method.

FontStyle fontStyle

A value that indicates the font style for the text object created by this method.

FontStretch fontStretch

A value that indicates the font stretch for the text object created by this method.

float fontSize

The logical size of the font in DIP ("device-independent pixel") units. A DIP equals 1/96 inch.

string localeName

An array of characters that contains the locale name.

Returns
Type Description
TextFormat