The CreateFontIndirectEx function specifies a logical font that has the characteristics in the specified structure. The font can subsequently be selected as the current font for any device context.
HFONT CreateFontIndirectExA( const ENUMLOGFONTEXDVA *Arg1 );
If the function succeeds, the return value is the handle to the new ENUMLOGFONTEXDV structure.
If the function fails, the return value is zero. No extended error information is available.
The CreateFontIndirectEx function creates a logical font with the characteristics specified in the ENUMLOGFONTEXDV structure. When this font is selected by using the SelectObject function, GDI's font mapper attempts to match the logical font with an existing physical font. If it fails to find an exact match, it provides an alternative whose characteristics match as many of the requested characteristics as possible.
When you no longer need the font, call the DeleteObject function to delete it.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||wingdi.h (include Windows.h)|