ImageGear .NET v25.0 - Updated
CreateFont Method




ImageGear.Formats.Vector Assembly > ImageGear.Vector Namespace > ImGearVectorData Class : CreateFont Method
Typeface of the font.
Font weight.
Flag that tells whether Vector or TrueType font is to be created.
Creates a font by typeface and weight.
Syntax
'Declaration
 
Public Function CreateFont( _
   ByVal typeface As String, _
   ByVal weight As Integer, _
   ByVal isVector As Boolean _
) As ImGearVectorFont
'Usage
 
Dim instance As ImGearVectorData
Dim typeface As String
Dim weight As Integer
Dim isVector As Boolean
Dim value As ImGearVectorFont
 
value = instance.CreateFont(typeface, weight, isVector)
public ImGearVectorFont CreateFont( 
   string typeface,
   int weight,
   bool isVector
)
public: ImGearVectorFont* CreateFont( 
   string* typeface,
   int weight,
   bool isVector
) 
public:
ImGearVectorFont^ CreateFont( 
   String^ typeface,
   int weight,
   bool isVector
) 

Parameters

typeface
Typeface of the font.
weight
Font weight.
isVector
Flag that tells whether Vector or TrueType font is to be created.

Return Value

New instance of ImGearVectorFont class.
Remarks
If isVector is true then an empty vector font is created. The user is responsible for creating every glyph of such font. Otherwise, a complete TrueType font is created.
See Also

Reference

ImGearVectorData Class
ImGearVectorData Members
ImGearVectorFont Class