Table of Contents

Method GetDefaultOrNew

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

GetDefaultOrNew(string, double, FontStyle, Font?)

Creates new font or gets defaultFont if its properties are equal to the specified.

public static Font GetDefaultOrNew(string name, double sizeInPoints, FontStyle style, Font? defaultFont = null)

Parameters

name string

Font name.

sizeInPoints double

Font size.

style FontStyle

Font style

defaultFont Font

Default font. Optional. If null, Default is used.

Returns

Font