Share via


Font.Font(Device,Int32,Int32,FontWeight,Int32,Boolean,CharacterSet,Precision,FontQuality,PitchAndFamily,String) Constructor (Microsoft.DirectX.Direct3D)

Creates a new instance of a Font class.

Definition

Visual Basic 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
);
C++ public:
 Font(
    Devicedevice,
    int height,
    int width,
    FontWeight weight,
    int miplevels,
    bool italic,
    CharacterSet charset,
    Precision outputPrecision,
    FontQuality quality,
    PitchAndFamily pitchFamily,
    StringLeave SitefaceName
);
JScript 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.