CreateFontIndirect (gdi32)
Last changed: -211.217.134.90

.
Summary

C# Signature:

[DllImport("gdi32.dll")]
static extern IntPtr CreateFontIndirect([In] ref LOGFONT lplf);

User-Defined Types:

LOGFONT

Notes:

None.

Tips & Tricks:

Does not work.

Declaration from MSDN (http://msdn2.microsoft.com/en-us/library/aa288468(vs.71).aspx) is OK :

      [DllImport("gdi32.dll", CharSet=CharSet.Auto)]
      public static extern IntPtr CreateFontIndirect(
        [In, MarshalAs(UnmanagedType.LPStruct)]
        LOGFONT lplf   // characteristics
        );

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation