C# Class PdfSharp.Fonts.OpenType.FontData

Represents an Open Type Font font in memory.
Exibir arquivo Open project: DavidS/MigraDoc Class Usage Examples

Public Methods

Method Description
AddTable ( PdfSharp.Fonts.OpenType.OpenTypeFontTable fontTable ) : void

Adds the specified table to this font image.

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.

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

Initializes a new instance of the FontData class.

FontData ( byte data ) : 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
Compile ( ) : void

Compiles the font to its binary representation.

CreateGdiFontImage ( PdfSharp.Drawing.XFont font, PdfSharp.Drawing.XPdfFontOptions options ) : 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

Shallow copy for font subset.

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 ( PdfSharp.Fonts.OpenType.OpenTypeFontTable fontTable ) : void
fontTable PdfSharp.Fonts.OpenType.OpenTypeFontTable
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

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 data ) : System
data 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