SetFontParameters Method (ITextStyle)

SetFontParameters Method (ITextStyle) | Send Feedback
See Also

Typeface
  File name of the Windows font

Bold
  True to bold the Windows font, false to not

Italic
  True to italicize the Windows font, false to not

Charset
  Windows character set identifier

PitchAndFamily
  Windows pitch and character family identifier

Sets the parameters of a Windows font for the TextStyle.

# Syntax

Visual Basic |
--- | ---
    Sub SetFontParameters( _
       ByVal Typeface As System.String, _
       ByVal Bold As System.Boolean, _
       ByVal Italic As System.Boolean, _
       ByVal Charset As System.Integer, _
       ByVal PitchAndFamily As System.Integer _
    )

C# |
--- | ---
    void SetFontParameters(
       System.string Typeface,
       System.bool Bold,
       System.bool Italic,
       System.int Charset,
       System.int PitchAndFamily
    )

JavaScript |
--- | ---
    SetFontParameters(
       Typeface : String,
       Bold : Boolean,
       Italic : Boolean,
       Charset : Number,
       PitchAndFamily : Number
    )

COM native C++ |
--- | ---
    HRESULT SetFontParameters(
       BSTR Typeface,
       VARIANT_BOOL Bold,
       VARIANT_BOOL Italic,
       LONG Charset,
       LONG PitchAndFamily
    )

C++ |
--- | ---
    DSRESULT SetFontParameters(
       const dsString& Typeface,
       bool Bold,
       bool Italic,
       long Charset,
       long PitchAndFamily
    )

#### Parameters

Typeface
  File name of the Windows font
Bold
  True to bold the Windows font, false to not
Italic
  True to italicize the Windows font, false to not
Charset
  Windows character set identifier
PitchAndFamily
  Windows pitch and character family identifier

# See Also

####

ITextStyle Interface
ITextStyle Members
ITextStyle::GetFontParameters Method

# Availability

DraftSight V1R1.1