Drawing3d documented Class Library

FeaturesW32.CreateFont Method

[Visual Basic]
<PreserveSig> _
<DllImport(EntryPoint:="CreateFont", CharSet:=CharSet.None, SetLastError:=True, ExactSpelling:=False, PreserveSig:=True, CallingConvention:=CallingConvention.Winapi, BestFitMapping:=False, ThrowOnUnmappableChar:=False, Value:="gdi32.dll")> _
<SuppressUnmanagedCodeSecurity> _
Public Shared Sub CreateFont( _
   ByVal height As Integer, _
   ByVal width As Integer, _
   ByVal escapement As Integer, _
   ByVal orientation As Integer, _
   ByVal weight As Integer, _
   ByVal italic As Boolean, _
   ByVal underline As Boolean, _
   ByVal strikeOut As Boolean, _
   ByVal charSet As Integer, _
   ByVal outputPrecision As Integer, _
   ByVal clipPrecision As Integer, _
   ByVal quality As Integer, _
   ByVal pitchAndFamily As Integer, _
   ByVal typeFace As String _
)
[C#]
[PreserveSig]
[DllImport(EntryPoint="CreateFont", CharSet=CharSet.None, SetLastError=True, ExactSpelling=False, PreserveSig=True, CallingConvention=CallingConvention.Winapi, BestFitMapping=False, ThrowOnUnmappableChar=False, Value="gdi32.dll")]
[SuppressUnmanagedCodeSecurity]
public static IntPtr CreateFont(
   int height,
   int width,
   int escapement,
   int orientation,
   int weight,
   bool italic,
   bool underline,
   bool strikeOut,
   int charSet,
   int outputPrecision,
   int clipPrecision,
   int quality,
   int pitchAndFamily,
   string typeFace
);

Parameters

height
width
escapement
orientation
weight
italic
underline
strikeOut
charSet
outputPrecision
clipPrecision
quality
pitchAndFamily
typeFace

Return Value

See Also

FeaturesW32 Class | Drawing3d.OS.Windows Namespace