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