Constructor Font
Font(FontInfo)
public Font(FontInfo fontInfo)
Parameters
fontInfoFontInfo
Font(string, double, FontStyle)
Initializes a new Font using a specified font familty name, size in points and style.
public Font(string familyName, double emSize, FontStyle style = FontStyle.Regular)
Parameters
familyNamestringA string representation of the font family for the new Font.
emSizedoubleThe em-size, in points, of the new font.
styleFontStyleThe FontStyle of the new font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(FontFamily, double, FontStyle)
Initializes a new Font using a specified font family, size in points and style.
public Font(FontFamily family, double emSize, FontStyle style = FontStyle.Regular)
Parameters
familyFontFamilyThe FontFamily of the new Font.
emSizedoubleThe em-size, in points, of the new font.
styleFontStyleThe FontStyle of the new font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(Font, FontStyle)
public Font(Font prototype, FontStyle newStyle)
Parameters
prototypeFontnewStyleFontStyleThe FontStyle to apply to the new Font. Multiple values of the FontStyle enumeration can be combined with the
ORoperator.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(Font, double)
public Font(Font prototype, double newSize)
Parameters
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(FontFamily, double, FontStyle, GraphicsUnit)
Initializes a new Font using a specified size, style, and unit.
public Font(FontFamily family, double emSize, FontStyle style, GraphicsUnit unit)
Parameters
familyFontFamilyThe FontFamily of the new Font.
emSizedoubleThe em-size of the new font in the units specified by the
unitparameter.styleFontStyleThe FontStyle of the new font.
unitGraphicsUnitThe unit of the new font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(FontFamily, double, FontStyle, GraphicsUnit, byte)
Initializes a new Font using a specified size, style, unit, and character set.
public Font(FontFamily family, double emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)
Parameters
familyFontFamilyThe FontFamily of the new Font.
emSizedoubleThe em-size of the new font in the units specified by the
unitparameter.styleFontStyleThe FontStyle of the new font.
unitGraphicsUnitThe unit of the new font.
gdiCharSetbyteA byte that specifies a GDI character set to use for the new font. Currently ignored.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(FontFamily, double, FontStyle, GraphicsUnit, byte, bool)
Initializes a new Font using a specified size, style, unit, and character set.
public Font(FontFamily family, double emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
Parameters
familyFontFamilyThe FontFamily of the new Font.
emSizedoubleThe em-size of the new font in the units specified by the
unitparameter.styleFontStyleThe FontStyle of the new font.
unitGraphicsUnitThe unit of the new font.
gdiCharSetbyteA byte that specifies a GDI character set to use for this font. Currently ignored.
gdiVerticalFontboolA Boolean value indicating whether the new font is derived from a GDI vertical font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(string, double, FontStyle, GraphicsUnit, byte)
Initializes a new Font using a specified size, style, unit, and character set.
public Font(string familyName, double emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)
Parameters
familyNamestringA string representation of the FontFamily for the new Font.
emSizedoubleThe em-size of the new font in the units specified by the
unitparameter.styleFontStyleThe FontStyle of the new font.
unitGraphicsUnitThe unit of the new font.
gdiCharSetbyteA byte that specifies a GDI character set to use for this font. Currently ignored.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(string, double, FontStyle, GraphicsUnit, byte, bool)
Initializes a new Font using the specified size, style, unit, and character set.
public Font(string familyName, double emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
Parameters
familyNamestringA string representation of the FontFamily for the new Font.
emSizedoubleThe em-size of the new font in the units specified by the
unitparameter.styleFontStyleThe FontStyle of the new font.
unitGraphicsUnitThe unit of the new font.
gdiCharSetbyteA byte that specifies a GDI character set to use for this font. Currently ignored.
gdiVerticalFontboolA Boolean value indicating whether the new Font is derived from a GDI vertical font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(FontFamily, float, GraphicsUnit)
public Font(FontFamily family, float emSize, GraphicsUnit unit)
Parameters
familyFontFamilyThe FontFamily of the new Font.
emSizefloatThe em-size of the new font in the units specified by the
unitparameter.unitGraphicsUnitThe unit of the new font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(FontFamily, double)
Initializes a new Font using a specified size.
public Font(FontFamily family, double emSize)
Parameters
familyFontFamilyThe FontFamily of the new Font.
emSizedoubleThe em-size, in points, of the new font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(string, double, FontStyle, GraphicsUnit)
Initializes a new Font using a specified size, style, and unit.
public Font(string familyName, double emSize, FontStyle style, GraphicsUnit unit)
Parameters
familyNamestringA string representation of the FontFamily for the new Font.
emSizedoubleThe em-size of the new font in the units specified by the
unitparameter.styleFontStyleThe FontStyle of the new font.
unitGraphicsUnitThe unit of the new font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(string, double, GraphicsUnit)
public Font(string familyName, double emSize, GraphicsUnit unit)
Parameters
familyNamestringA string representation of the FontFamily for the new Font.
emSizedoubleThe em-size of the new font in the units specified by the
unitparameter.unitGraphicsUnitThe unit of the new font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(string, double)
Initializes a new Font using a specified size.
public Font(string familyName, double emSize)
Parameters
familyNamestringA string representation of the FontFamily for the new Font.
emSizedoubleThe em-size, in points, of the new font.
Remarks
If bad parameters are passed to the font constructor, error message is output to log and font is created with default parameters. No exceptions are raised.
Font(IFontHandler)
Initializes a new Font using a specified font handler.
public Font(IFontHandler handler)
Parameters
handlerIFontHandlerFont handler.