Table of Contents

Class KernTable

Namespace
Xui.Runtime.Software.Font
Assembly
Xui.Runtime.Software.dll
public sealed class KernTable
Inheritance
KernTable
Inherited Members

Constructors

KernTable(ReadOnlySpan<byte>, CMapTable)

public KernTable(ReadOnlySpan<byte> data, CMapTable cmap)

Parameters

data ReadOnlySpan<byte>
cmap CMapTable

Fields

Pairs

public readonly Dictionary<(ushort Left, ushort Right), short> Pairs

Field Value

Dictionary<(ushort Left, ushort Right), short>

Properties

CMap

public CMapTable CMap { get; }

Property Value

CMapTable

this[Rune, Rune]

public TrueTypeFont.ValueRecord this[Rune left, Rune right] { get; }

Parameters

left Rune
right Rune

Property Value

TrueTypeFont.ValueRecord

Methods

CreateSubset(IEnumerable<Pair>)

Creates a horizontal format-0 kern table from the retained pairs.

public static byte[] CreateSubset(IEnumerable<KernTable.Pair> pairs)

Parameters

pairs IEnumerable<KernTable.Pair>

Returns

byte[]

GetKerningAdjustment(ushort, ushort)

public short GetKerningAdjustment(ushort left, ushort right)

Parameters

left ushort
right ushort

Returns

short