iText 5

TrueTypeFont (1)

TrueTypeFont Public class

Diagram

flowchart LR classDef interfaceStyle stroke-dasharray: 5 5; classDef abstractStyle stroke-width:4px subgraph iTextSharp.text.pdf iTextSharp.text.pdf.TrueTypeFont[[TrueTypeFont]] iTextSharp.text.pdf.BaseFont[[BaseFont]] class iTextSharp.text.pdf.BaseFont abstractStyle; end iTextSharp.text.pdf.BaseFont --> iTextSharp.text.pdf.TrueTypeFont

Members

Properties

Public properties

Type

Name

Methods

string``[][]

AllNameEntries

get

bool

Cff

get

string``[]

CodePagesSupported

get

int

DirectoryOffset

get

string``[][]

FamilyFontName

get

string

FileName

get

string``[][]

FullFontName

get

int

MaxGlyphId

get

string

PostscriptFontName

get, set

RandomAccessFileOrArray

Rf

get

string

Subfamily

get

Internal properties

Type

Name

Methods

string

BaseFont

get

Methods

Protected Static methods

Returns

Name

int``[]

CompactRanges

(List<int``[]> ranges)

string

GetTTCName

(string name)

Internal methods

Returns

Name

void

CheckCff

()

void

FillTables

()

string``[][]

GetAllNames

()

string``[][]

GetNames

(int id)

int

GetRawWidth

(int c, string name)

bool

IsWinAnsiSupported

()

void

Process

(byte``[] ttfAfm, bool preload)

void

ReadCMaps

()

Dictionary<int, int``[]>

ReadFormat0

()

Dictionary<int, int``[]>

ReadFormat12

()

Dictionary<int, int``[]>

ReadFormat4

()

Dictionary<int, int``[]>

ReadFormat6

()

void

ReadKerning

()

void

WriteFont

(

PdfWriter

writer,

PdfIndirectReference

piref, object``[] parms)

Protected methods

Returns

Name

PdfDictionary

GetFontBaseType

(

PdfIndirectReference

fontDescriptor, string subsetPrefix, int firstChar, int lastChar, byte``[] shortTag)

int``[]

GetRawCharBBox

(int c, string name)

void

ReadGlyphWidths

()

string

ReadStandardString

(int length)

string

ReadUnicodeString

(int length)

Protected internal methods

Returns

Name

int

GetGlyphWidth

(int glyph)

byte``[]

GetSubSet

(HashSet2<int> glyphs, bool subsetp)

Public methods

Returns

Name

void

AddRangeUni

(Dictionary<int, int``[]> longTag, bool includeMetrics, bool subsetp)

PdfDictionary

GetFontDescriptor

(...)

byte``[]

GetFullFont

()

PdfStream

GetFullFontStream

()

int

GetKerning

(int char1, int char2)

int``[]

GetMetricsTT

(int c)

bool

HasKernPairs

()

byte``[]

ReadCffFont

()

bool

SetKerning

(int char1, int char2, int kern)

Details

Inheritance

Nested types

Classes
  • FontHeader

  • HorizontalHeader

  • WindowsMetrics

Constructors

TrueTypeFont [1/2]

Source code

protected TrueTypeFont()

TrueTypeFont [2/2]

Source code

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

Arguments

Type

Name

Description

string

ttFile

string

enc

bool

emb

byte``[]

ttfAfm

bool

justNames

bool

forceRead

Methods

GetTTCName

Source code

protected static string GetTTCName(string name)

Arguments

Type

Name

Description

string

name

FillTables

Source code

internal void FillTables()

GetNames

Source code

internal string GetNames(int id)

Arguments

Type

Name

Description

int

id

GetAllNames

Source code

internal string GetAllNames()

CheckCff

Source code

internal void CheckCff()

Process

Source code

internal void Process(byte[] ttfAfm, bool preload)

Arguments

Type

Name

Description

byte``[]

ttfAfm

bool

preload

ReadStandardString

Source code

protected virtual string ReadStandardString(int length)

Arguments

Type

Name

Description

int

length

ReadUnicodeString

Source code

protected virtual string ReadUnicodeString(int length)

Arguments

Type

Name

Description

int

length

ReadGlyphWidths

Source code

protected virtual void ReadGlyphWidths()

GetGlyphWidth

Source code

protected internal virtual int GetGlyphWidth(int glyph)

Arguments

Type

Name

Description

int

glyph

ReadCMaps

Source code

internal void ReadCMaps()

ReadFormat12

Source code

internal Dictionary<int, int> ReadFormat12()

ReadFormat0

Source code

internal Dictionary<int, int> ReadFormat0()

ReadFormat4

Source code

internal Dictionary<int, int> ReadFormat4()

ReadFormat6

Source code

internal Dictionary<int, int> ReadFormat6()

ReadKerning

Source code

internal void ReadKerning()

GetKerning

Source code

public override int GetKerning(int char1, int char2)

Arguments

Type

Name

Description

int

char1

int

char2

GetRawWidth

Source code

internal override int GetRawWidth(int c, string name)

Arguments

Type

Name

Description

int

c

string

name

GetFontDescriptor [1/2]

Source code

public virtual PdfDictionary GetFontDescriptor(PdfIndirectReference fontStream, string subsetPrefix, PdfIndirectReference cidset)

Arguments

Type

Name

Description

PdfIndirectReference

fontStream

string

subsetPrefix

PdfIndirectReference

cidset

GetFontBaseType

Source code

protected virtual PdfDictionary GetFontBaseType(PdfIndirectReference fontDescriptor, string subsetPrefix, int firstChar, int lastChar, byte[] shortTag)

Arguments

Type

Name

Description

PdfIndirectReference

fontDescriptor

string

subsetPrefix

int

firstChar

int

lastChar

byte``[]

shortTag

GetFullFont

Source code

public virtual byte GetFullFont()

GetSubSet

Source code

protected internal virtual byte GetSubSet(HashSet2<int> glyphs, bool subsetp)

Arguments

Type

Name

Description

HashSet2<int>

glyphs

bool

subsetp

CompactRanges

Source code

protected static int CompactRanges(List<int[]> ranges)

Arguments

Type

Name

Description

List<int``[]>

ranges

AddRangeUni

Source code

public virtual void AddRangeUni(Dictionary<int, int[]> longTag, bool includeMetrics, bool subsetp)

Arguments

Type

Name

Description

Dictionary<int, int``[]>

longTag

bool

includeMetrics

bool

subsetp

WriteFont

Source code

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

Arguments

Type

Name

Description

PdfWriter

writer

PdfIndirectReference

piref

object``[]

parms

ReadCffFont

Source code

public virtual byte ReadCffFont()

GetFullFontStream

Source code

public override PdfStream GetFullFontStream()

GetFontDescriptor [2/2]

Source code

public override float GetFontDescriptor(int key, float fontSize)

Arguments

Type

Name

Description

int

key

float

fontSize

GetMetricsTT

Source code

public virtual int GetMetricsTT(int c)

Arguments

Type

Name

Description

int

c

HasKernPairs

Source code

public override bool HasKernPairs()

SetKerning

Source code

public override bool SetKerning(int char1, int char2, int kern)

Arguments

Type

Name

Description

int

char1

int

char2

int

kern

GetRawCharBBox

Source code

protected override int GetRawCharBBox(int c, string name)

Arguments

Type

Name

Description

int

c

string

name

IsWinAnsiSupported

Source code

internal bool IsWinAnsiSupported()

Properties

Rf

public virtual RandomAccessFileOrArray Rf { get; }

FileName

public virtual string FileName { get; }

Cff

public virtual bool Cff { get; }

DirectoryOffset

public virtual int DirectoryOffset { get; }

BaseFont

internal string BaseFont { get; }

PostscriptFontName

public override string PostscriptFontName { get; set; }

CodePagesSupported

public override string CodePagesSupported { get; }

FullFontName

public override string FullFontName { get; }

Subfamily

public override string Subfamily { get; }

AllNameEntries

public override string AllNameEntries { get; }

FamilyFontName

public override string FamilyFontName { get; }

MaxGlyphId

public int MaxGlyphId { get; }

Generated with ModularDoc