Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This topic lists the constructors of the Font class. For a complete class listing, see Font Class.
Overload list
Constructor | Description |
---|---|
Font(HDC,HFONT) | Creates a Font::Font object indirectly from a GDI logical font by using a handle to a GDI LOGFONT structure. |
Font(HDC,LOGFONTA*) | Creates a Font::Font object directly from a GDI logical font. The GDI logical font is a LOGFONTA structure, which is the one-byte character version of a logical font. This constructor is provided for compatibility with GDI. |
Font(HDC,LOGFONTW*) | Creates a Font::Font object directly from a GDI logical font. The GDI logical font is a LOGFONTW structure, which is the wide character version of a logical font. This constructor is provided for compatibility with GDI. |
Font(FontFamily*,REAL,INT,Unit) | Creates a Font::Font object based on a FontFamily object, a size, a font style, and a unit of measurement. |
Font(WCHAR*,REAL,INT,Unit,FontCollection*) | Creates a Font::Font object based on a font family, a size, a font style, a unit of measurement, and a FontCollection object. |
Font(HDC) | Creates a Font::Font object based on the GDI font object that is currently selected into a specified device context. This constructor is provided for compatibility with GDI. |
Syntax
void Font(
GpFont *font,
Status status
);
Parameters
font
status
Return value
None
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | gdiplusheaders.h |