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
)
Public Sub New (
systemFont As SystemFont,
Optional size As Nullable(Of Single) = Nothing,
Optional decoration As FontDecoration = FontDecoration.None
)
new :
systemFont : SystemFont *
?size : Nullable<float32> *
?decoration : FontDecoration
(* Defaults:
let _size = defaultArg size null
let _decoration = defaultArg decoration FontDecoration.None
*)
-> Font
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