Click or drag to resize

Font Constructor (SystemFont, NullableSingle, FontDecoration)

Creates a new instance of the Font class with a specified systemFont and optional custom size

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public Font(
	SystemFont systemFont,
	Nullable<float> size = null,
	FontDecoration decoration = FontDecoration.None
)

Parameters

systemFont
Type: Eto.DrawingSystemFont
Type of system font to create
size (Optional)
Type: SystemNullableSingle
Optional size of the font, in points. If not specified, the default size of the system font is used
decoration (Optional)
Type: Eto.DrawingFontDecoration
Decorations to apply to the font
Remarks
The system fonts are the same fonts that the standard UI of each platform use for particular areas given the SystemFont enumeration.
See Also