Microsoft DirectX 9.0 SDK Update (October 2004)

Font.Font Constructor

Language:

Note: This documentation is preliminary and is subject to change.

Creates a new instance of a Font class.

Definition

Visual Basic .NET Public Sub New( _
    ByVal device As Device, _
    ByVal height As Integer, _
    ByVal width As Integer, _
    ByVal weight As FontWeight, _
    ByVal miplevels As Integer, _
    ByVal italic As Boolean, _
    ByVal charset As CharacterSet, _
    ByVal outputPrecision As Precision, _
    ByVal quality As FontQuality, _
    ByVal pitchFamily As PitchAndFamily, _
    ByVal faceName As String _
)
C# public Font(
    Device device,
    int height,
    int width,
    FontWeight weight,
    int miplevels,
    bool italic,
    CharacterSet charset,
    Precision outputPrecision,
    FontQuality quality,
    PitchAndFamily pitchFamily,
    string faceName
);
Managed C++ public: Font(
    Device *device,
    int height,
    int width,
    FontWeight weight,
    int miplevels,
    bool italic,
    CharacterSet charset,
    Precision outputPrecision,
    FontQuality quality,
    PitchAndFamily pitchFamily,
    String *faceName
);
JScript .NET public function Font(
    device : Device,
    height : int,
    width : int,
    weight : FontWeight,
    miplevels : int,
    italic : boolean,
    charset : CharacterSet,
    outputPrecision : Precision,
    quality : FontQuality,
    pitchFamily : PitchAndFamily,
    faceName : String
);

Parameters

device Microsoft.DirectX.Direct3D.Device. A Device object to associate with the font object.
height System.Int32. Height of the font.
width System.Int32. Width of the font.
weight Microsoft.DirectX.Direct3D.FontWeight. Weight of the font.
miplevels System.Int32. Number of mip levels.
italic System.Boolean. Set to true if the font is in italics; otherwise, false.
charset Microsoft.DirectX.Direct3D.CharacterSet. A CharacterSet enumerated value that indicates the type of characters to use.
outputPrecision Microsoft.DirectX.Direct3D.Precision. A Precision constant that indicates the font precision.
quality Microsoft.DirectX.Direct3D.FontQuality. A FontQuality value that indicates the quality of the font.
pitchFamily Microsoft.DirectX.Direct3D.PitchAndFamily. A PitchAndFamily value that indicates the font pitch and family.
faceName System.String. A string that indicates the name of the font.

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center