Font Constructor (String, Single, FontStyle, FontDecoration) |
Creates a new instance of the Font class with a specified family, size, and style
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public Font(
string family,
float size,
FontStyle style = FontStyle.None,
FontDecoration decoration = FontDecoration.None
)
Public Sub New (
family As String,
size As Single,
Optional style As FontStyle = FontStyle.None,
Optional decoration As FontDecoration = FontDecoration.None
)
new :
family : string *
size : float32 *
?style : FontStyle *
?decoration : FontDecoration
(* Defaults:
let _style = defaultArg style FontStyle.None
let _decoration = defaultArg decoration FontDecoration.None
*)
-> Font
Parameters
- family
- Type: SystemString
Family of font to use - size
- Type: SystemSingle
Size of the font, in points - style (Optional)
- Type: Eto.DrawingFontStyle
Style of the font - decoration (Optional)
- Type: Eto.DrawingFontDecoration
Decorations to apply to the font
See Also