Skip to main content

Class VelloTextShaperCore

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

public static class VelloTextShaperCore

Inheritance

objectVelloTextShaperCore

Inherited Members

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

Methods

ShapeUtf16(nint, ReadOnlySpan<char>, float, bool, float)

public static IReadOnlyList<VelloGlyph> ShapeUtf16(nint fontHandle, ReadOnlySpan<char> text, float fontSize, bool isRightToLeft, float letterSpacing = 0)

Parameters

fontHandle nint

text ReadOnlySpan<char>

fontSize float

isRightToLeft bool

letterSpacing float

Returns

IReadOnlyList<VelloGlyph>

ShapeUtf16(nint, ReadOnlySpan<char>, VelloTextShaperOptions, Func<ReadOnlyMemory<byte>>?, uint)

public static IReadOnlyList<VelloGlyph> ShapeUtf16(nint fontHandle, ReadOnlySpan<char> text, VelloTextShaperOptions options, Func<ReadOnlyMemory<byte>>? fontDataProvider = null, uint faceIndex = 0)

Parameters

fontHandle nint

text ReadOnlySpan<char>

options VelloTextShaperOptions

fontDataProvider Func<ReadOnlyMemory<byte>>?

faceIndex uint

Returns

IReadOnlyList<VelloGlyph>