Table of Contents

Class GlyfTable

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

Constructors

GlyfTable(ReadOnlyMemory<byte>, LocaTable)

public GlyfTable(ReadOnlyMemory<byte> data, LocaTable loca)

Parameters

data ReadOnlyMemory<byte>
loca LocaTable

Methods

CreateSubset(IReadOnlyList<int>, IReadOnlyDictionary<int, ushort>)

Creates compact glyf and long-format loca tables for retained glyphs.

public GlyfTable.Subset CreateSubset(IReadOnlyList<int> glyphs, IReadOnlyDictionary<int, ushort> glyphMap)

Parameters

glyphs IReadOnlyList<int>
glyphMap IReadOnlyDictionary<int, ushort>

Returns

GlyfTable.Subset

ExpandCompositeDependencies(SortedSet<int>)

Adds every component needed by retained composite glyphs.

public void ExpandCompositeDependencies(SortedSet<int> glyphs)

Parameters

glyphs SortedSet<int>

TryGetGlyph(int, out GlyphShape)

Returns a glyph shape by slicing the raw memory using loca table offsets.

public bool TryGetGlyph(int glyphIndex, out GlyphShape shape)

Parameters

glyphIndex int
shape GlyphShape

Returns

bool