Table of Contents

Class LocaTable

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

Constructors

LocaTable(ReadOnlySpan<byte>, int, ushort)

public LocaTable(ReadOnlySpan<byte> data, int numGlyphs, ushort indexToLocFormat)

Parameters

data ReadOnlySpan<byte>
numGlyphs int
indexToLocFormat ushort

Methods

CreateLong(IReadOnlyList<int>)

Creates a long-format loca table from glyph offsets.

public static byte[] CreateLong(IReadOnlyList<int> offsets)

Parameters

offsets IReadOnlyList<int>

Returns

byte[]

GetGlyphBounds(int)

public (int Offset, int Length) GetGlyphBounds(int glyphIndex)

Parameters

glyphIndex int

Returns

(int Offset, int Length)