[]
Creates an object that represents a font face.
public static FontFace Create(Factory factory, FontFaceType fontFaceType, FontFile[] fontFiles, int faceIndex, FontSimulations fontFaceSimulationFlags)
| 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. |
| Type | Description |
|---|---|
| FontFace |
Creates a font face object for the font.
public static FontFace Create(Font font)
| Type | Name | Description |
|---|---|---|
| Font | font | the Font to create the FontFace from. |
| Type | Description |
|---|---|
| FontFace |