GH_FontServerNewFont Method (FontFamily, Single, FontStyle) |
Safe font constructor.
Namespace:
Grasshopper.Kernel
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static Font NewFont(
FontFamily family,
float size,
FontStyle style
)
Public Shared Function NewFont (
family As FontFamily,
size As Single,
style As FontStyle
) As Font
Parameters
- family
- Type: System.DrawingFontFamily
Font family. - size
- Type: SystemSingle
Size (in points). - style
- Type: System.DrawingFontStyle
Style (if available).
Return Value
Type:
FontSee Also