Font.Font(const FontFamily*, REAL, INT, Unit) constructor
Applies to: desktop apps only
Creates a Font::Font object based on a FontFamily object, a size, a font style, and a unit of measurement.
Syntax
Font(
[in] const FontFamily *family,
[in] REAL emSize,
[in] INT style,
[in] Unit unit
);
Parameters
family [in]
Type: const FontFamily*Pointer to a FontFamily object that specifies information such as the string that identifies the font family and the font family's text metrics measured in design units.
emSize [in]
Type: REALReal number that specifies the em size of the font measured in the units specified in the unit parameter.
style [in]
Type: INTOptional. Integer that specifies the style of the typeface. This value must be an element of the FontStyle enumeration or the result of a bitwise OR applied to two or more of these elements. For example, FontStyleBold | FontStyleUnderline | FontStyleStrikeout sets the style as a combination of the three styles. The default value is FontStyleRegular.
unit [in]
Type: UnitOptional. Element of the Unit enumeration that specifies the unit of measurement for the font size. The default value is UnitPoint.
Requirements
Minimum supported client |
Windows XP, Windows 2000 Professional |
Minimum supported server |
Windows 2000 Server |
Product |
GDI+ 1.0 |
Header |
Gdiplusheaders.h (include Gdiplus.h) |
Library |
Gdiplus.lib |
DLL |
Gdiplus.dll |
See also
Send comments about this topic to Microsoft
Build date: 3/6/2012