C# Class PdfSharp.Fonts.TrueType.FontData

Represents a TrueType font in memory.
显示文件 Open project: GNOME/pdfmod Class Usage Examples

Public Methods

Method Description
AddTable ( TrueTypeFontTable fontTable ) : void

Adds the specified table to this font image.

Compile ( ) : void

Compiles the font to its binary representation.

CreateFontSubSet ( object>.Dictionary glyphs, bool cidFont ) : FontData

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

CreateGdiFontImage ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options, PdfSharp.Drawing.XPrivateFontCollection privateFontCollection ) : void

Create the font image using GDI+ functionality.

CreateWpfFontData ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options ) : void

Create the font image using WPF functionality.

FontData ( FontData fontData ) : System
FontData ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options ) : System

Initializes a new instance of the FontData class.

FontData ( byte fontData ) : System

Initializes a new instance of the FontData class.

Read ( byte buffer ) : void

Reads the specified buffer.

Read ( byte buffer, int offset, int length ) : void

Reads the specified buffer.

ReadByte ( ) : byte

Reads a System.Byte.

ReadBytes ( int size ) : byte[]

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

ReadFWord ( ) : short

Reads a System.Int16.

ReadFixed ( ) : Int32

Reads a System.Int32.

ReadLong ( ) : int

Reads a System.Int32.

ReadLongDate ( ) : long

Reads a System.Int64.

ReadShort ( ) : short

Reads a System.Int16.

ReadString ( int size ) : string

Reads a System.String with the specified size.

ReadTag ( ) : string

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

ReadUFWord ( ) : ushort

Reads a System.UInt16.

ReadULong ( ) : uint

Reads a System.UInt32.

ReadUShort ( ) : ushort

Reads a System.UInt16.

Seek ( string tag ) : int
SeekOffset ( int offset ) : int

Private Methods

Method Description
Read ( ) : void

Reads all required tables from the font data.

Method Details

AddTable() public method

Adds the specified table to this font image.
public AddTable ( TrueTypeFontTable fontTable ) : void
fontTable TrueTypeFontTable
return void

Compile() public method

Compiles the font to its binary representation.
public Compile ( ) : void
return void

CreateFontSubSet() public method

Creates a new font image that is a subset of this font image containing only the specified glyphs.
public CreateFontSubSet ( object>.Dictionary glyphs, bool cidFont ) : FontData
glyphs object>.Dictionary
cidFont bool
return FontData

CreateGdiFontImage() public method

Create the font image using GDI+ functionality.
public CreateGdiFontImage ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options, PdfSharp.Drawing.XPrivateFontCollection privateFontCollection ) : void
font PdfSharp.Drawing.XFont
options PdfSharp.Drawing.XPdfFontOptions
privateFontCollection PdfSharp.Drawing.XPrivateFontCollection
return void

CreateWpfFontData() public method

Create the font image using WPF functionality.
public CreateWpfFontData ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options ) : void
font PdfSharp.Drawing.XFont
options PdfSharp.Drawing.XPdfFontOptions
return void

FontData() public method

public FontData ( FontData fontData ) : System
fontData FontData
return System

FontData() public method

Initializes a new instance of the FontData class.
public FontData ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options ) : System
font PdfSharp.Drawing.XFont
options PdfSharp.Drawing.XPdfFontOptions
return System

FontData() public method

Initializes a new instance of the FontData class.
public FontData ( byte fontData ) : System
fontData byte
return System

Read() public method

Reads the specified buffer.
public Read ( byte buffer ) : void
buffer byte
return void

Read() public method

Reads the specified buffer.
public Read ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
return void

ReadByte() public method

Reads a System.Byte.
public ReadByte ( ) : byte
return byte

ReadBytes() public method

Reads a System.Byte[] with the specified size.
public ReadBytes ( int size ) : byte[]
size int
return byte[]

ReadFWord() public method

Reads a System.Int16.
public ReadFWord ( ) : short
return short

ReadFixed() public method

Reads a System.Int32.
public ReadFixed ( ) : Int32
return System.Int32

ReadLong() public method

Reads a System.Int32.
public ReadLong ( ) : int
return int

ReadLongDate() public method

Reads a System.Int64.
public ReadLongDate ( ) : long
return long

ReadShort() public method

Reads a System.Int16.
public ReadShort ( ) : short
return short

ReadString() public method

Reads a System.String with the specified size.
public ReadString ( int size ) : string
size int
return string

ReadTag() public method

Reads a System.Char[4] as System.String.
public ReadTag ( ) : string
return string

ReadUFWord() public method

Reads a System.UInt16.
public ReadUFWord ( ) : ushort
return ushort

ReadULong() public method

Reads a System.UInt32.
public ReadULong ( ) : uint
return uint

ReadUShort() public method

Reads a System.UInt16.
public ReadUShort ( ) : ushort
return ushort

Seek() public method

public Seek ( string tag ) : int
tag string
return int

SeekOffset() public method

public SeekOffset ( int offset ) : int
offset int
return int