[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.FontFace.Create

Create Method

Create(Factory, FontFaceType, FontFile[], int, FontSimulations)

Creates an object that represents a font face.

Declaration
public static FontFace Create(Factory factory, FontFaceType fontFaceType, FontFile[] fontFiles, int faceIndex, FontSimulations fontFaceSimulationFlags)
Parameters
Type Name Description
Factory factory

A reference to a DirectWrite factory Factory

FontFaceType fontFaceType

A value that indicates the type of file format of the font face.

FontFile[] fontFiles

A font file object representing the font face. BecauseC1.Win.DX.DirectWrite.FontFace maintains its own references to the input font file objects, you may release them after this call.

int faceIndex

The zero-based index of a font face, in cases when the font files contain a collection of font faces. If the font files contain a single face, this value should be zero.

FontSimulations fontFaceSimulationFlags

A value that indicates which, if any, font face simulation flags for algorithmic means of making text bold or italic are applied to the current font face.

Returns
Type Description
FontFace

Create(Font)

Creates a font face object for the font.

Declaration
public static FontFace Create(Font font)
Parameters
Type Name Description
Font font

the Font to create the FontFace from.

Returns
Type Description
FontFace