Class GlyfTable
public class GlyfTable
- Inheritance
-
GlyfTable
- Inherited Members
Constructors
GlyfTable(ReadOnlyMemory<byte>, LocaTable)
public GlyfTable(ReadOnlyMemory<byte> data, LocaTable loca)
Parameters
dataReadOnlyMemory<byte>locaLocaTable
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
glyphsIReadOnlyList<int>glyphMapIReadOnlyDictionary<int, ushort>
Returns
ExpandCompositeDependencies(SortedSet<int>)
Adds every component needed by retained composite glyphs.
public void ExpandCompositeDependencies(SortedSet<int> glyphs)
Parameters
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
glyphIndexintshapeGlyphShape