Skip to main content

Struct VelloTextShaperOptions

Namespace: VelloSharp.Text
Assembly: VelloSharp.Text.dll

public readonly record struct VelloTextShaperOptions : IEquatable<VelloTextShaperOptions>

Implements

IEquatable<VelloTextShaperOptions>

Inherited Members

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

Constructors

VelloTextShaperOptions(float, bool, float, IReadOnlyList<VelloOpenTypeFeature>?, IReadOnlyList<VelloVariationAxisValue>?, bool, CultureInfo?)

public VelloTextShaperOptions(float FontSize, bool IsRightToLeft, float LetterSpacing = 0, IReadOnlyList<VelloOpenTypeFeature>? Features = null, IReadOnlyList<VelloVariationAxisValue>? VariationAxes = null, bool EnableScriptSegmentation = true, CultureInfo? Culture = null)

Parameters

FontSize float

IsRightToLeft bool

LetterSpacing float

Features IReadOnlyList<VelloOpenTypeFeature>?

VariationAxes IReadOnlyList<VelloVariationAxisValue>?

EnableScriptSegmentation bool

Culture CultureInfo?

Properties

Culture

public CultureInfo? Culture { get; init; }

Property Value

CultureInfo?

EnableScriptSegmentation

public bool EnableScriptSegmentation { get; init; }

Property Value

bool

Features

public IReadOnlyList<VelloOpenTypeFeature>? Features { get; init; }

Property Value

IReadOnlyList<VelloOpenTypeFeature>?

FontSize

public float FontSize { get; init; }

Property Value

float

IsRightToLeft

public bool IsRightToLeft { get; init; }

Property Value

bool

LetterSpacing

public float LetterSpacing { get; init; }

Property Value

float

VariationAxes

public IReadOnlyList<VelloVariationAxisValue>? VariationAxes { get; init; }

Property Value

IReadOnlyList<VelloVariationAxisValue>?

Methods

CreateDefault(float, bool, float)

public static VelloTextShaperOptions CreateDefault(float fontSize, bool isRightToLeft, float letterSpacing = 0)

Parameters

fontSize float

isRightToLeft bool

letterSpacing float

Returns

VelloTextShaperOptions