HFONT CreateFontIndirect(lplf) | |||
LPLOGFONT lplf; |
The CreateFontIndirect function creates a logical font that has the characteristics given in the structure pointed to by the lplf parameter. The font can subsequently be selected as the current font for any device context.
lplf
Points to a LOGFONT structure that defines the characteristics of the logical font.
The return value identifies a logical font if the function is successful. Otherwise, it is 0.
The CreateFontIndirect function creates a logical font that has all the specified characteristics. When the 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 alternate whose characteristics match as many of the requested characteristics as possible. For a description of the font mapper, see Chapter 2, Graphics Device Interface Functions.
DeleteObject, SelectObject