Click or drag to resize

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
)

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