public static void Test()
{
Font font = new Font("Times New Roman", 10);
FontData image = new FontData(font);
// Font font = new Font("Isabelle", 12);
// LOGFONT logFont = new LOGFONT();
// font.ToLogFont(logFont);
//
// IntPtr hfont = CreateFontIndirect(logFont);
//// IntPtr hfont2 = font.ToHfont();
//// System.Windows.Forms.MessageBox.Show(hfont2.ToString());
//
// Graphics gfx = Graphics.FromHwnd(IntPtr.Zero);
// IntPtr hdc = gfx.GetHdc();
// IntPtr oldFont = SelectObject(hdc, hfont);
// int size = GetFontData(hdc, 0, 0, null, 0);
//
// byte[] fontbits = new byte[size];
// int xx = GetFontData(hdc, 0, 0, fontbits, size);
// SelectObject(hdc, oldFont);
// DeleteObject(hfont);
// gfx.ReleaseHdc(hdc);
//
// FontData image = new FontData(fontbits);
// //image.Read();
//
//
// //HandleRef
//
// font.GetType();
}
#endif