C# Класс PdfSharp.Fonts.TrueType.FontData

Represents a TrueType font in memory.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
Read ( ) : void

Reads all required tables from the font data.

Описание методов

AddTable() публичный Метод

Adds the specified table to this font image.
public AddTable ( TrueTypeFontTable fontTable ) : void
fontTable TrueTypeFontTable
Результат void

Compile() публичный Метод

Compiles the font to its binary representation.
public Compile ( ) : void
Результат void

CreateFontSubSet() публичный Метод

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
Результат FontData

CreateGdiFontImage() публичный Метод

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
Результат void

CreateWpfFontData() публичный Метод

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
Результат void

FontData() публичный Метод

public FontData ( FontData fontData ) : System
fontData FontData
Результат System

FontData() публичный Метод

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
Результат System

FontData() публичный Метод

Initializes a new instance of the FontData class.
public FontData ( byte fontData ) : System
fontData byte
Результат System

Read() публичный Метод

Reads the specified buffer.
public Read ( byte buffer ) : void
buffer byte
Результат void

Read() публичный Метод

Reads the specified buffer.
public Read ( byte buffer, int offset, int length ) : void
buffer byte
offset int
length int
Результат void

ReadByte() публичный Метод

Reads a System.Byte.
public ReadByte ( ) : byte
Результат byte

ReadBytes() публичный Метод

Reads a System.Byte[] with the specified size.
public ReadBytes ( int size ) : byte[]
size int
Результат byte[]

ReadFWord() публичный Метод

Reads a System.Int16.
public ReadFWord ( ) : short
Результат short

ReadFixed() публичный Метод

Reads a System.Int32.
public ReadFixed ( ) : Int32
Результат System.Int32

ReadLong() публичный Метод

Reads a System.Int32.
public ReadLong ( ) : int
Результат int

ReadLongDate() публичный Метод

Reads a System.Int64.
public ReadLongDate ( ) : long
Результат long

ReadShort() публичный Метод

Reads a System.Int16.
public ReadShort ( ) : short
Результат short

ReadString() публичный Метод

Reads a System.String with the specified size.
public ReadString ( int size ) : string
size int
Результат string

ReadTag() публичный Метод

Reads a System.Char[4] as System.String.
public ReadTag ( ) : string
Результат string

ReadUFWord() публичный Метод

Reads a System.UInt16.
public ReadUFWord ( ) : ushort
Результат ushort

ReadULong() публичный Метод

Reads a System.UInt32.
public ReadULong ( ) : uint
Результат uint

ReadUShort() публичный Метод

Reads a System.UInt16.
public ReadUShort ( ) : ushort
Результат ushort

Seek() публичный Метод

public Seek ( string tag ) : int
tag string
Результат int

SeekOffset() публичный Метод

public SeekOffset ( int offset ) : int
offset int
Результат int