private static System.IntPtr CreateFont(System.Drawing.Font font) { Skybound.Windows.Forms.TextRenderer.LOGFONT logfont2; logfont2 = new Skybound.Windows.Forms.TextRenderer.LOGFONT(); object obj = logfont2; font.ToLogFont(obj); Skybound.Windows.Forms.TextRenderer.LOGFONT logfont1 = (Skybound.Windows.Forms.TextRenderer.LOGFONT)obj; logfont1.lfFaceName = font.Name; logfont1.lfQuality = 0; return(Skybound.Windows.Forms.TextRenderer.CreateFontIndirect(ref logfont1)); }
private static System.IntPtr CreateFont(System.Drawing.Font font) { Skybound.Windows.Forms.TextRenderer.LOGFONT logfont2; logfont2 = new Skybound.Windows.Forms.TextRenderer.LOGFONT(); object obj = logfont2; font.ToLogFont(obj); Skybound.Windows.Forms.TextRenderer.LOGFONT logfont1 = (Skybound.Windows.Forms.TextRenderer.LOGFONT)obj; logfont1.lfFaceName = font.Name; logfont1.lfQuality = 0; return Skybound.Windows.Forms.TextRenderer.CreateFontIndirect(ref logfont1); }
private static extern System.IntPtr CreateFontIndirect(ref Skybound.Windows.Forms.TextRenderer.LOGFONT lpLogFont);