Class FontFileReader
Class designed to parse a TrueType font file.
Inheritance
Inherited Members
Namespace: Telerik.Pdf.Gdi.Font
Assembly: TelerikData.dll
Syntax
public class FontFileReader
Constructors
FontFileReader(MemoryStream)
Class constructor.
Declaration
public FontFileReader(MemoryStream stream)
Parameters
System.IO.MemoryStream
stream
Font data stream. |
FontFileReader(MemoryStream, String)
Class constructor.
Declaration
public FontFileReader(MemoryStream stream, string fontName)
Parameters
System.IO.MemoryStream
stream
Font data stream. |
System.String
fontName
Name of a font in a TrueType collection. |
Properties
IndexMappings
Gets or sets a dictionary containing glyph index to subset index mappings.
Declaration
public IndexMappings IndexMappings { get; set; }
Property Value
IndexMappings
|
TableCount
Gets the number tables.
Declaration
public int TableCount { get; }
Property Value
System.Int32
|
Methods
ContainsTable(String)
Gets a value indicating whether or not this font contains the supplied table.
Declaration
public bool ContainsTable(string tableName)
Parameters
System.String
tableName
A table name. |
Returns
System.Boolean
|
ReadRequiredTables()
Caches the following tables: 'head', 'hhea', 'maxp', 'loca'
Declaration
protected void ReadRequiredTables()
ReadTableHeaders()
Reads the Offset and Directory tables. If the FontFileStream represents a TrueType collection, this method will look for the aforementioned tables belonging to fontName.
Declaration
protected void ReadTableHeaders()
Remarks
This method can handle a TrueType collection.