public void PopFont() { object o = fontStack.Pop(); if (o != null) { Win32Util.SelectObject(hdc, (IntPtr)o); } }
public void PushFont(object handle) { IntPtr oldFont = Win32Util.SelectObject(hdc, (IntPtr)handle); fontStack.Push(oldFont); }