Esempio n. 1
0
        public static Font FromLogFont(object lf, IntPtr hdc)
        {
            IntPtr newObject;

            Interop.User32.LOGFONT o = (Interop.User32.LOGFONT)lf;
            int status = Gdip.GdipCreateFontFromLogfont(hdc, ref o, out newObject);

            Gdip.CheckStatus(status);
            return(new Font(newObject, "Microsoft Sans Serif", FontStyle.Regular, 10));
        }