Prev: Detect stand-by mode xp/vista
Next: MiniDumpWriteDump called from x64 process can generate x86 dump?
From: Luc Moulinier on 20 Jul 2010 07:50 Hello ! I'm new to Win32, coming from X11, and I have some questions related to font handleing. - How do I go from a font fname (Courier 12) to a HFONT to give to SelectObject ? - If i gave a xlib Font type, is there a way to access to its corresponding HFONT type ? Many thanks in advance for your help ! Luc
From: Stefan Kuhr on 20 Jul 2010 08:00
Hello Luc, On 7/20/2010 1:50 PM, Luc Moulinier wrote: > Hello ! > I'm new to Win32, coming from X11, and I have some questions related > to font handleing. > > - How do I go from a font fname (Courier 12) to a HFONT to give to > SelectObject ? > - If i gave a xlib Font type, is there a way to access to its > corresponding HFONT type ? > > Many thanks in advance for your help ! > Luc Fill out a LOGFONT structure and pass it to CreateFontIndirect. -- S |