[DllImport("opengl32", EntryPoint = "wglUseFontOutlines", CallingConvention=CallingConvention.Winapi)]
public static extern bool wglUseFontOutlines(
IntPtr hDC,
[MarshalAs(UnmanagedType.U4)] UInt32 first,
[MarshalAs(UnmanagedType.U4)] UInt32 count,
[MarshalAs(UnmanagedType.U4)] UInt32 listBase,
[MarshalAs(UnmanagedType.R4)] Single deviation,
[MarshalAs(UnmanagedType.R4)] Single extrusion,
[MarshalAs(UnmanagedType.I4)] Int32 format,
[Out] Gdi.GLYPHMETRICSFLOAT[] lpgmf);
Declare Function wglUseFontOutlines Lib "opengl32.dll" (TODO) As TODO
None.
None.
Seems to work for Win98, WinNT, WinXP, Win2K, and Win2003.
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
public struct GLYPHMETRICSFLOAT
{
public Single gmfBlackBoxX;
public Single gmfBlackBoxY;
public POINTFLOAT gmfptGlyphOrigin;
public Single gmfCellIncX;
public Single gmfCellIncY;
}
public struct POINTFLOAT
{
public Single x;
public Single y;
}
Do you know one? Please contribute it!