Skip to main content

Class VelloTextShaperCore

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

public static class VelloTextShaperCore

Inheritance​

object ← VelloTextShaperCore

Inherited Members​

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

Methods​

GetHarfbuzzFontExtents(nint, float)​

public static HbFontExtents GetHarfbuzzFontExtents(nint fontHandle, float fontSize)

Parameters​

fontHandle nint

fontSize float

Returns​

HbFontExtents

GetHarfbuzzVerticalMetrics(nint, ushort, float, VelloTextShaperOptions, Func<ReadOnlyMemory<byte>>?, uint)​

public static HbVerticalGlyphMetrics GetHarfbuzzVerticalMetrics(nint fontHandle, ushort glyphId, float fontSize, VelloTextShaperOptions options, Func<ReadOnlyMemory<byte>>? fontDataProvider = null, uint faceIndex = 0)

Parameters​

fontHandle nint

glyphId ushort

fontSize float

options VelloTextShaperOptions

fontDataProvider Func<ReadOnlyMemory<byte>>?

faceIndex uint

Returns​

HbVerticalGlyphMetrics

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

public static HbShapeResult ShapeHarfbuzzUtf16(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​

HbShapeResult

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>