Public Member Functions

 FontParser (byte[] data)
 
int TableOffset (string table)
 The location of the named table in the stream. More...
 
bool HandleTable (string tag, int offset, FontFace font)
 Handles a table which is located at 'offset' in the stream and has the given tag. More...
 
byte ReadByte ()
 
int ReadOffset (int offSize)
 
short ReadInt16 ()
 
ushort ReadUInt16 ()
 
ushort ReadUInt16 (ref int index)
 
short ReadInt16 (ref int index)
 
int ReadInt32 ()
 
uint ReadUInt32 ()
 
int ReadInt24 ()
 
uint ReadUInt24 ()
 
float ReadRevision ()
 
float ReadVersion ()
 
void ApplyWindowsMetrics (FontFace font)
 
ulong ReadTime ()
 
string ReadString (int length)
 
ulong ReadBase128 ()
 
string ReadTag ()
 
float ReadF2Dot14 ()
 
int ReadFixed (out int frac)
 

Public Attributes

byte[] Data
 
int Position
 
int IndexToLocFormat
 
int GlyphCount
 
float usWinAscent
 
float usWinDescent
 
float HheaAscender
 
float HheaDescender
 
float HheaLineGap
 

Package Attributes

Dictionary< string, TableInfoTables =new Dictionary<string,TableInfo>()
 The tables in this parser. More...
 

Constructor & Destructor Documentation

InfiniText.FontParser.FontParser ( byte[]  data)
inline

Member Function Documentation

void InfiniText.FontParser.ApplyWindowsMetrics ( FontFace  font)
inline
bool InfiniText.FontParser.HandleTable ( string  tag,
int  offset,
FontFace  font 
)
inline

Handles a table which is located at 'offset' in the stream and has the given tag.

ulong InfiniText.FontParser.ReadBase128 ( )
inline
byte InfiniText.FontParser.ReadByte ( )
inline
float InfiniText.FontParser.ReadF2Dot14 ( )
inline
int InfiniText.FontParser.ReadFixed ( out int  frac)
inline
short InfiniText.FontParser.ReadInt16 ( )
inline
short InfiniText.FontParser.ReadInt16 ( ref int  index)
inline
int InfiniText.FontParser.ReadInt24 ( )
inline
int InfiniText.FontParser.ReadInt32 ( )
inline
int InfiniText.FontParser.ReadOffset ( int  offSize)
inline
float InfiniText.FontParser.ReadRevision ( )
inline
string InfiniText.FontParser.ReadString ( int  length)
inline
string InfiniText.FontParser.ReadTag ( )
inline
ulong InfiniText.FontParser.ReadTime ( )
inline
ushort InfiniText.FontParser.ReadUInt16 ( )
inline
ushort InfiniText.FontParser.ReadUInt16 ( ref int  index)
inline
uint InfiniText.FontParser.ReadUInt24 ( )
inline
uint InfiniText.FontParser.ReadUInt32 ( )
inline
float InfiniText.FontParser.ReadVersion ( )
inline
int InfiniText.FontParser.TableOffset ( string  table)
inline

The location of the named table in the stream.

Member Data Documentation

byte [] InfiniText.FontParser.Data
int InfiniText.FontParser.GlyphCount
float InfiniText.FontParser.HheaAscender
float InfiniText.FontParser.HheaDescender
float InfiniText.FontParser.HheaLineGap
int InfiniText.FontParser.IndexToLocFormat
int InfiniText.FontParser.Position
Dictionary<string,TableInfo> InfiniText.FontParser.Tables =new Dictionary<string,TableInfo>()
package

The tables in this parser.

float InfiniText.FontParser.usWinAscent
float InfiniText.FontParser.usWinDescent