Font Constructor (FontTypeface, Single, FontDecoration) |
Initializes a new instance of the Font class with the specified typeface and size
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public Font(
FontTypeface typeface,
float size,
FontDecoration decoration = FontDecoration.None
)
Public Sub New (
typeface As FontTypeface,
size As Single,
Optional decoration As FontDecoration = FontDecoration.None
)
new :
typeface : FontTypeface *
size : float32 *
?decoration : FontDecoration
(* Defaults:
let _decoration = defaultArg decoration FontDecoration.None
*)
-> Font
Parameters
- typeface
- Type: Eto.DrawingFontTypeface
Typeface of the font to create - size
- Type: SystemSingle
Size of the font in points - decoration (Optional)
- Type: Eto.DrawingFontDecoration
Decorations to apply to the font
See Also