can i get the font information from Graphics System.Drawing.Graphics in c#
- by Bahgat Mashaly
Hello
i get the Graphics from
Graphics g= System.Drawing.Graphics.FromHwnd(button1.Handle);
can i get the font information from this Graphics
i was try to get a font by using
GetTextFace api function but it return "system" it mean default font in OS
and i was try to use SendMessage(button1.Handle, WM_GETFONT, 0, 0); bu it return me 0 also it is mean default font in OS
I have known the cause of the problem, it due to FlatStyle property
See this link
http://blogs.msdn.com/b/michkap/archive/2008/09/26/8965526.aspx
thanks