Skip to main content

Class VelloFont

Namespace: VelloSharp.WinForms
Assembly: VelloSharp.WinForms.Core.dll

public sealed class VelloFont : IDisposable

Inheritance

objectVelloFont

Implements

IDisposable

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

VelloFont(string, float, FontStyle, CultureInfo?)

public VelloFont(string familyName, float size, FontStyle style = FontStyle.Regular, CultureInfo? culture = null)

Parameters

familyName string

size float

style FontStyle

culture CultureInfo?

Properties

CoreFont

public Font CoreFont { get; }

Property Value

Font

Culture

public CultureInfo Culture { get; }

Property Value

CultureInfo

FaceIndex

public uint FaceIndex { get; }

Property Value

uint

FamilyName

public string FamilyName { get; }

Property Value

string

ResolvedFamilyName

public string ResolvedFamilyName { get; }

Property Value

string

Size

public float Size { get; }

Property Value

float

Style

public FontStyle Style { get; }

Property Value

FontStyle

Weight

public float Weight { get; }

Property Value

float

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

FromFamily(string, float, bool, bool, CultureInfo?)

public static VelloFont FromFamily(string familyName, float size, bool bold = false, bool italic = false, CultureInfo? culture = null)

Parameters

familyName string

size float

bold bool

italic bool

culture CultureInfo?

Returns

VelloFont

FromSystemFont(Font)

public static VelloFont FromSystemFont(Font font)

Parameters

font Font

Returns

VelloFont