iText 5

TrueTypeFontUnicode

TrueTypeFontUnicode Public class

Diagram

flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.text.pdf iTextSharp.text.pdf.TrueTypeFontUnicode[[TrueTypeFontUnicode]] iTextSharp.text.pdf.TrueTypeFont[[TrueTypeFont]] end subgraph System.Collections.Generic System.Collections.Generic.IComparer_1[[IComparer]] end System.Collections.Generic.IComparer_1 --> iTextSharp.text.pdf.TrueTypeFontUnicode iTextSharp.text.pdf.TrueTypeFont --> iTextSharp.text.pdf.TrueTypeFontUnicode

Members

Methods

Public methods

Returns

Name

bool

CharExists

(int c)

int

Compare

(int``[] o1, int``[] o2)

byte``[]

ConvertToBytes

(string text)

PdfDictionary

GetCIDFontType2

(

PdfIndirectReference

fontDescriptor, string subsetPrefix, object``[] metrics)

int``[]

GetCharBBox

(int c)

int

GetCharFromGlyphId

(int gid)

PdfDictionary

GetFontBaseType

(

PdfIndirectReference

descendant, string subsetPrefix,

PdfIndirectReference

toUnicode)

PdfStream

GetFullFontStream

()

int``[]

GetMetricsTT

(int c)

PdfStream

GetToUnicode

(object``[] metrics)

int

GetWidth

(...)

bool

SetCharAdvance

(int c, int advance)

Internal methods

Returns

Name

byte``[]

ConvertToBytes

(int char1)

void

WriteFont

(

PdfWriter

writer,

PdfIndirectReference

piref, object``[] parms)

Internal Static methods

Returns

Name

string

ToHex

(int n)

Details

Inheritance

Constructors

TrueTypeFontUnicode

Source code

internal TrueTypeFontUnicode(string ttFile, string enc, bool emb, byte[] ttfAfm, bool forceRead)

Arguments

Type

Name

Description

string

ttFile

string

enc

bool

emb

byte``[]

ttfAfm

bool

forceRead

Methods

GetWidth [1/2]

Source code

public override int GetWidth(int char1)

Arguments

Type

Name

Description

int

char1

GetWidth [2/2]

Source code

public override int GetWidth(string text)

Arguments

Type

Name

Description

string

text

GetToUnicode

Source code

public virtual PdfStream GetToUnicode(object[] metrics)

Arguments

Type

Name

Description

object``[]

metrics

ToHex

Source code

internal static string ToHex(int n)

Arguments

Type

Name

Description

int

n

GetCIDFontType2

Source code

public virtual PdfDictionary GetCIDFontType2(PdfIndirectReference fontDescriptor, string subsetPrefix, object[] metrics)

Arguments

Type

Name

Description

PdfIndirectReference

fontDescriptor

string

subsetPrefix

object``[]

metrics

GetFontBaseType

Source code

public virtual PdfDictionary GetFontBaseType(PdfIndirectReference descendant, string subsetPrefix, PdfIndirectReference toUnicode)

Arguments

Type

Name

Description

PdfIndirectReference

descendant

string

subsetPrefix

PdfIndirectReference

toUnicode

GetCharFromGlyphId

Source code

public virtual int GetCharFromGlyphId(int gid)

Arguments

Type

Name

Description

int

gid

Compare

Source code

public virtual int Compare(int[] o1, int[] o2)

Arguments

Type

Name

Description

int``[]

o1

int``[]

o2

WriteFont

Source code

internal override void WriteFont(PdfWriter writer, PdfIndirectReference piref, object[] parms)

Arguments

Type

Name

Description

PdfWriter

writer

PdfIndirectReference

piref

object``[]

parms

GetFullFontStream

Source code

public override PdfStream GetFullFontStream()

ConvertToBytes [1/2]

Source code

public override byte ConvertToBytes(string text)

Arguments

Type

Name

Description

string

text

ConvertToBytes [2/2]

Source code

internal override byte ConvertToBytes(int char1)

Arguments

Type

Name

Description

int

char1

GetMetricsTT

Source code

public override int GetMetricsTT(int c)

Arguments

Type

Name

Description

int

c

CharExists

Source code

public override bool CharExists(int c)

Arguments

Type

Name

Description

int

c

SetCharAdvance

Source code

public override bool SetCharAdvance(int c, int advance)

Arguments

Type

Name

Description

int

c

int

advance

GetCharBBox

Source code

public override int GetCharBBox(int c)

Arguments

Type

Name

Description

int

c

Generated with ModularDoc