PdfSharp-WPF  1.31.7289
PdfSharp.Fonts.OpenType.FontData Class Reference

Represents an Open Type Font font in memory. More...

Classes

struct  OffsetTable
 Represents the font offset table.
 

Public Member Functions

 FontData (XFont font, XPdfFontOptions options)
 Initializes a new instance of the FontData class. More...
 
 FontData (byte[] data)
 Initializes a new instance of the FontData class. More...
 
void AddTable (OpenTypeFontTable fontTable)
 Adds the specified table to this font image. More...
 
FontData CreateFontSubSet (Dictionary< int, object > glyphs, bool cidFont)
 Creates a new font image that is a subset of this font image containing only the specified glyphs. More...
 
int Seek (string tag)
 
int SeekOffset (int offset)
 
byte ReadByte ()
 Reads a System.Byte. More...
 
short ReadShort ()
 Reads a System.Int16. More...
 
ushort ReadUShort ()
 Reads a System.UInt16. More...
 
int ReadLong ()
 Reads a System.Int32. More...
 
uint ReadULong ()
 Reads a System.UInt32. More...
 
Fixed ReadFixed ()
 Reads a System.Int32. More...
 
short ReadFWord ()
 Reads a System.Int16. More...
 
ushort ReadUFWord ()
 Reads a System.UInt16. More...
 
long ReadLongDate ()
 Reads a System.Int64. More...
 
string ReadString (int size)
 Reads a System.String with the specified size. More...
 
byte[] ReadBytes (int size)
 Reads a System.Byte[] with the specified size. More...
 
void Read (byte[] buffer)
 Reads the specified buffer. More...
 
void Read (byte[] buffer, int offset, int length)
 Reads the specified buffer. More...
 
string ReadTag ()
 Reads a System.Char[4] as System.String. More...
 

Properties

byte[] Data [get]
 Gets the bytes that represents the font data. More...
 
bool CanRead [get]
 
bool CanWrite [get]
 
int Position [get, set]
 

Detailed Description

Represents an Open Type Font font in memory.

Constructor & Destructor Documentation

◆ FontData() [1/2]

PdfSharp.Fonts.OpenType.FontData.FontData ( XFont  font,
XPdfFontOptions  options 
)

Initializes a new instance of the FontData class.

◆ FontData() [2/2]

PdfSharp.Fonts.OpenType.FontData.FontData ( byte[]  data)

Initializes a new instance of the FontData class.

Member Function Documentation

◆ AddTable()

void PdfSharp.Fonts.OpenType.FontData.AddTable ( OpenTypeFontTable  fontTable)

Adds the specified table to this font image.

◆ CreateFontSubSet()

FontData PdfSharp.Fonts.OpenType.FontData.CreateFontSubSet ( Dictionary< int, object >  glyphs,
bool  cidFont 
)

Creates a new font image that is a subset of this font image containing only the specified glyphs.

◆ Read() [1/2]

void PdfSharp.Fonts.OpenType.FontData.Read ( byte[]  buffer)

Reads the specified buffer.

◆ Read() [2/2]

void PdfSharp.Fonts.OpenType.FontData.Read ( byte[]  buffer,
int  offset,
int  length 
)

Reads the specified buffer.

◆ ReadByte()

byte PdfSharp.Fonts.OpenType.FontData.ReadByte ( )

Reads a System.Byte.

◆ ReadBytes()

byte [] PdfSharp.Fonts.OpenType.FontData.ReadBytes ( int  size)

Reads a System.Byte[] with the specified size.

◆ ReadFixed()

Fixed PdfSharp.Fonts.OpenType.FontData.ReadFixed ( )

Reads a System.Int32.

◆ ReadFWord()

short PdfSharp.Fonts.OpenType.FontData.ReadFWord ( )

Reads a System.Int16.

◆ ReadLong()

int PdfSharp.Fonts.OpenType.FontData.ReadLong ( )

Reads a System.Int32.

◆ ReadLongDate()

long PdfSharp.Fonts.OpenType.FontData.ReadLongDate ( )

Reads a System.Int64.

◆ ReadShort()

short PdfSharp.Fonts.OpenType.FontData.ReadShort ( )

Reads a System.Int16.

◆ ReadString()

string PdfSharp.Fonts.OpenType.FontData.ReadString ( int  size)

Reads a System.String with the specified size.

◆ ReadTag()

string PdfSharp.Fonts.OpenType.FontData.ReadTag ( )

Reads a System.Char[4] as System.String.

◆ ReadUFWord()

ushort PdfSharp.Fonts.OpenType.FontData.ReadUFWord ( )

Reads a System.UInt16.

◆ ReadULong()

uint PdfSharp.Fonts.OpenType.FontData.ReadULong ( )

Reads a System.UInt32.

◆ ReadUShort()

ushort PdfSharp.Fonts.OpenType.FontData.ReadUShort ( )

Reads a System.UInt16.

◆ Seek()

int PdfSharp.Fonts.OpenType.FontData.Seek ( string  tag)

◆ SeekOffset()

int PdfSharp.Fonts.OpenType.FontData.SeekOffset ( int  offset)

Property Documentation

◆ CanRead

bool PdfSharp.Fonts.OpenType.FontData.CanRead
get

◆ CanWrite

bool PdfSharp.Fonts.OpenType.FontData.CanWrite
get

◆ Data

byte [] PdfSharp.Fonts.OpenType.FontData.Data
get

Gets the bytes that represents the font data.

◆ Position

int PdfSharp.Fonts.OpenType.FontData.Position
getset

The documentation for this class was generated from the following file: