Class IndexMappings
Utility class that stores a list of glyph indices and their asociated subset indices.
Inheritance
Inherited Members
Namespace: Telerik.Pdf.Gdi.Font
Assembly: TelerikData.dll
Syntax
public class IndexMappings
Constructors
IndexMappings()
Class constructor.
Declaration
public IndexMappings()
Properties
Count
Gets the number of glyph to subset index mappings.
Declaration
public int Count { get; }
Property Value
System.Int32
|
GlyphIndices
Gets a list of glyph indices sorted in ascending order.
Declaration
public IList GlyphIndices { get; }
Property Value
System.Collections.IList
|
SubsetIndices
Gets a list of subset indices sorted in ascending order.
Declaration
public IList SubsetIndices { get; }
Property Value
System.Collections.IList
|
Methods
Add(Int32[])
Adds the list of supplied glyph indices to the index mappings using the next available subset index for each glyph index.
Declaration
public void Add(params int[] glyphIndices)
Parameters
System.Int32[]
glyphIndices
|
GetGlyphIndex(Int32)
Gets the glyph index of subsetIndex.
Declaration
public int GetGlyphIndex(int subsetIndex)
Parameters
System.Int32
subsetIndex
|
Returns
System.Int32
A subset index or -1 if a subset to glyph mapping does not exist. |
GetSubsetIndex(Int32)
Gets the subset index of glyphIndex.
Declaration
public int GetSubsetIndex(int glyphIndex)
Parameters
System.Int32
glyphIndex
|
Returns
System.Int32
A glyph index or -1 if a glyph to subset mapping does not exist. |
HasMapping(Int32)
Determines whether a mapping exists for the supplied glyph index.
Declaration
public bool HasMapping(int glyphIndex)
Parameters
System.Int32
glyphIndex
|
Returns
System.Boolean
|
Map(Int32)
Returns the subset index for glyphIndex. If a subset index does not exist for glyphIndex one is generated.
Declaration
public int Map(int glyphIndex)
Parameters
System.Int32
glyphIndex
|
Returns
System.Int32
A subset index. |