Constructor Font
Font(FontInfo)
public Font(FontInfo fontInfo)
Parameters
fontInfo
FontInfo
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
familyName
stringA string representation of the font family for the new Font.
emSize
doubleThe em-size, in points, of the new font.
style
FontStyleThe 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
family
FontFamilyThe FontFamily of the new Font.
emSize
doubleThe em-size, in points, of the new font.
style
FontStyleThe 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
prototype
FontnewStyle
FontStyleThe FontStyle to apply to the new Font. Multiple values of the FontStyle enumeration can be combined with the
OR
operator.
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
family
FontFamilyThe FontFamily of the new Font.
emSize
doubleThe em-size of the new font in the units specified by the
unit
parameter.style
FontStyleThe FontStyle of the new font.
unit
GraphicsUnitThe 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
family
FontFamilyThe FontFamily of the new Font.
emSize
doubleThe em-size of the new font in the units specified by the
unit
parameter.style
FontStyleThe FontStyle of the new font.
unit
GraphicsUnitThe unit of the new font.
gdiCharSet
byteA 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
family
FontFamilyThe FontFamily of the new Font.
emSize
doubleThe em-size of the new font in the units specified by the
unit
parameter.style
FontStyleThe FontStyle of the new font.
unit
GraphicsUnitThe unit of the new font.
gdiCharSet
byteA byte that specifies a GDI character set to use for this font. Currently ignored.
gdiVerticalFont
boolA 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
familyName
stringA string representation of the FontFamily for the new Font.
emSize
doubleThe em-size of the new font in the units specified by the
unit
parameter.style
FontStyleThe FontStyle of the new font.
unit
GraphicsUnitThe unit of the new font.
gdiCharSet
byteA 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
familyName
stringA string representation of the FontFamily for the new Font.
emSize
doubleThe em-size of the new font in the units specified by the
unit
parameter.style
FontStyleThe FontStyle of the new font.
unit
GraphicsUnitThe unit of the new font.
gdiCharSet
byteA byte that specifies a GDI character set to use for this font. Currently ignored.
gdiVerticalFont
boolA 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
family
FontFamilyThe FontFamily of the new Font.
emSize
floatThe em-size of the new font in the units specified by the
unit
parameter.unit
GraphicsUnitThe 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
family
FontFamilyThe FontFamily of the new Font.
emSize
doubleThe 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
familyName
stringA string representation of the FontFamily for the new Font.
emSize
doubleThe em-size of the new font in the units specified by the
unit
parameter.style
FontStyleThe FontStyle of the new font.
unit
GraphicsUnitThe 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
familyName
stringA string representation of the FontFamily for the new Font.
emSize
doubleThe em-size of the new font in the units specified by the
unit
parameter.unit
GraphicsUnitThe 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
familyName
stringA string representation of the FontFamily for the new Font.
emSize
doubleThe 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
handler
IFontHandlerFont handler.