Class VelloFont
Namespace: VelloSharp.WinForms
Assembly: VelloSharp.WinForms.Core.dll
public sealed class VelloFont : IDisposable
Inheritance
Implements
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
FaceIndex
public uint FaceIndex { get; }
Property Value
FamilyName
public string FamilyName { get; }
Property Value
ResolvedFamilyName
public string ResolvedFamilyName { get; }
Property Value
Size
public float Size { get; }
Property Value
Style
public FontStyle Style { get; }
Property Value
Weight
public float Weight { get; }
Property Value
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
FromSystemFont(Font)
public static VelloFont FromSystemFont(Font font)
Parameters
font
Font