iText 5

BaseFont (1)

BaseFont Public class

Description

Summary description for BaseFont.

Diagram

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

Members

Properties

Public properties

Type

Name

Methods

string``[][]

AllNameEntries

get

string``[]

CodePagesSupported

get

int

CompressionLevel

get, set

string``[]

Differences

get

bool

DirectTextToByte

get, set

string

Encoding

get

string``[][]

FamilyFontName

get

int

FontType

get, set

bool

ForceWidthsOutput

get, set

string``[][]

FullFontName

get

string

PostscriptFontName

get, set

string

Subfamily

get

bool

Subset

get, set

List<int``[]>

SubsetRanges

get

char``[]

UnicodeDifferences

get

int``[]

Widths

get

Methods

Public Static methods

Returns

Name

BaseFont

CreateFont

(...)

string

CreateSubsetPrefix

()

string``[]

EnumerateTTCNames

(...)

object``[]

GetAllFontNames

(string name, string encoding, byte``[] ttfAfm)

string``[][]

GetAllNameEntries

(string name, string encoding, byte``[] ttfAfm)

List<object``[]>

GetDocumentFonts

(...)

string``[][]

GetFullFontName

(string name, string encoding, byte``[] ttfAfm)

Protected Static methods

Returns

Name

string

GetBaseName

(string name)

string

NormalizeEncoding

(string enc)

Internal Static methods
Public methods

Returns

Name

void

AddSubsetRange

(int``[] range)

bool

CharExists

(int c)

byte``[]

ConvertToBytes

(string text)

void

CorrectArabicAdvance

()

int

GetAscent

(string text)

float

GetAscentPoint

(string text, float fontSize)

int``[]

GetCharBBox

(int c)

int

GetCidCode

(int c)

int

GetDescent

(string text)

float

GetDescentPoint

(string text, float fontSize)

float

GetFontDescriptor

(int key, float fontSize)

double``[]

GetFontMatrix

()

PdfStream

GetFullFontStream

()

int

GetKerning

(int char1, int char2)

int

GetUnicodeEquivalent

(int c)

int

GetWidth

(...)

float

GetWidthPoint

(...)

float

GetWidthPointKerned

(string text, float fontSize)

bool

HasKernPairs

()

bool

IsEmbedded

()

bool

IsFontSpecific

()

bool

IsVertical

()

bool

SetCharAdvance

(int c, int advance)

void

SetFontDescriptor

(int key, float value)

bool

SetKerning

(int char1, int char2, int kern)

Protected methods

Returns

Name

void

CreateEncoding

()

int``[]

GetRawCharBBox

(int c, string name)

Internal methods

Returns

Name

byte``[]

ConvertToBytes

(int char1)

int

GetRawWidth

(int c, string name)

char

GetUnicodeDifferences

(int index)

void

WriteFont

(

PdfWriter

writer,

PdfIndirectReference

piRef, object``[] oParams)

Details

Summary

Summary description for BaseFont.

Nested types

Classes
  • StreamFont

Constructors

BaseFont

Source code

protected BaseFont()

Methods

CreateFont [1/7]

Source code

public static BaseFont CreateFont()

CreateFont [2/7]

Source code

public static BaseFont CreateFont(string name, string encoding, bool embedded)

Arguments

Type

Name

Description

string

name

string

encoding

bool

embedded

CreateFont [3/7]

Source code

public static BaseFont CreateFont(string name, string encoding, bool embedded, bool forceRead)

Arguments

Type

Name

Description

string

name

string

encoding

bool

embedded

bool

forceRead

CreateFont [4/7]

Source code

public static BaseFont CreateFont(string name, string encoding, bool embedded, bool cached, byte[] ttfAfm, byte[] pfb)

Arguments

Type

Name

Description

string

name

string

encoding

bool

embedded

bool

cached

byte``[]

ttfAfm

byte``[]

pfb

CreateFont [5/7]

Source code

public static BaseFont CreateFont(string name, string encoding, bool embedded, bool cached, byte[] ttfAfm, byte[] pfb, bool noThrow)

Arguments

Type

Name

Description

string

name

string

encoding

bool

embedded

bool

cached

byte``[]

ttfAfm

byte``[]

pfb

bool

noThrow

CreateFont [6/7]

Source code

public static BaseFont CreateFont(string name, string encoding, bool embedded, bool cached, byte[] ttfAfm, byte[] pfb, bool noThrow, bool forceRead)

Arguments

Type

Name

Description

string

name

string

encoding

bool

embedded

bool

cached

byte``[]

ttfAfm

byte``[]

pfb

bool

noThrow

bool

forceRead

CreateFont [7/7]

Source code

public static BaseFont CreateFont(PRIndirectReference fontRef)

Arguments

Type

Name

Description

PRIndirectReference

fontRef

IsVertical

Source code

public virtual bool IsVertical()

GetBaseName

Source code

protected static string GetBaseName(string name)

Arguments

Type

Name

Description

string

name

NormalizeEncoding

Source code

protected static string NormalizeEncoding(string enc)

Arguments

Type

Name

Description

string

enc

CreateEncoding

Source code

protected virtual void CreateEncoding()

GetRawWidth

internal abstract int GetRawWidth(int c, string name)

Arguments

Type

Name

Description

int

c

string

name

GetKerning

public abstract int GetKerning(int char1, int char2)

Arguments

Type

Name

Description

int

char1

int

char2

SetKerning

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

Arguments

Type

Name

Description

int

char1

int

char2

int

kern

GetWidth [1/2]

Source code

public virtual int GetWidth(int char1)

Arguments

Type

Name

Description

int

char1

GetWidth [2/2]

Source code

public virtual int GetWidth(string text)

Arguments

Type

Name

Description

string

text

GetDescent

Source code

public virtual int GetDescent(string text)

Arguments

Type

Name

Description

string

text

GetAscent

Source code

public virtual int GetAscent(string text)

Arguments

Type

Name

Description

string

text

GetDescentPoint

Source code

public virtual float GetDescentPoint(string text, float fontSize)

Arguments

Type

Name

Description

string

text

float

fontSize

GetAscentPoint

Source code

public virtual float GetAscentPoint(string text, float fontSize)

Arguments

Type

Name

Description

string

text

float

fontSize

GetWidthPointKerned

Source code

public virtual float GetWidthPointKerned(string text, float fontSize)

Arguments

Type

Name

Description

string

text

float

fontSize

GetWidthPoint [1/2]

Source code

public virtual float GetWidthPoint(string text, float fontSize)

Arguments

Type

Name

Description

string

text

float

fontSize

GetWidthPoint [2/2]

Source code

public virtual float GetWidthPoint(int char1, float fontSize)

Arguments

Type

Name

Description

int

char1

float

fontSize

ConvertToBytes [1/2]

Source code

public virtual byte ConvertToBytes(string text)

Arguments

Type

Name

Description

string

text

ConvertToBytes [2/2]

Source code

internal virtual byte ConvertToBytes(int char1)

Arguments

Type

Name

Description

int

char1

WriteFont

internal abstract void WriteFont(PdfWriter writer, PdfIndirectReference piRef, object[] oParams)

Arguments

Type

Name

Description

PdfWriter

writer

PdfIndirectReference

piRef

object``[]

oParams

GetFullFontStream

public abstract PdfStream GetFullFontStream()

GetFontDescriptor

public abstract float GetFontDescriptor(int key, float fontSize)

Arguments

Type

Name

Description

int

key

float

fontSize

SetFontDescriptor

Source code

public virtual void SetFontDescriptor(int key, float value)

Arguments

Type

Name

Description

int

key

float

value

IsEmbedded

Source code

public virtual bool IsEmbedded()

IsFontSpecific

Source code

public virtual bool IsFontSpecific()

CreateSubsetPrefix

Source code

public static string CreateSubsetPrefix()

GetUnicodeDifferences

Source code

internal char GetUnicodeDifferences(int index)

Arguments

Type

Name

Description

int

index

GetFullFontName

Source code

public static string GetFullFontName(string name, string encoding, byte[] ttfAfm)

Arguments

Type

Name

Description

string

name

string

encoding

byte``[]

ttfAfm

GetAllFontNames

Source code

public static object GetAllFontNames(string name, string encoding, byte[] ttfAfm)

Arguments

Type

Name

Description

string

name

string

encoding

byte``[]

ttfAfm

GetAllNameEntries

Source code

public static string GetAllNameEntries(string name, string encoding, byte[] ttfAfm)

Arguments

Type

Name

Description

string

name

string

encoding

byte``[]

ttfAfm

EnumerateTTCNames [1/2]

Source code

public static string EnumerateTTCNames(string ttcFile)

Arguments

Type

Name

Description

string

ttcFile

EnumerateTTCNames [2/2]

Source code

public static string EnumerateTTCNames(byte[] ttcArray)

Arguments

Type

Name

Description

byte``[]

ttcArray

GetUnicodeEquivalent

Source code

public virtual int GetUnicodeEquivalent(int c)

Arguments

Type

Name

Description

int

c

GetCidCode

Source code

public virtual int GetCidCode(int c)

Arguments

Type

Name

Description

int

c

HasKernPairs

public abstract bool HasKernPairs()

CharExists

Source code

public virtual bool CharExists(int c)

Arguments

Type

Name

Description

int

c

SetCharAdvance

Source code

public virtual bool SetCharAdvance(int c, int advance)

Arguments

Type

Name

Description

int

c

int

advance

GetDocumentFonts [1/2]

Source code

public static List<object> GetDocumentFonts(PdfReader reader)

Arguments

Type

Name

Description

PdfReader

reader

GetDocumentFonts [2/2]

Source code

public static List<object> GetDocumentFonts(PdfReader reader, int page)

Arguments

Type

Name

Description

PdfReader

reader

int

page

createBuiltInFontDictionary

Source code

internal static PdfDictionary createBuiltInFontDictionary(string name)

Arguments

Type

Name

Description

string

name

GetCharBBox

Source code

public virtual int GetCharBBox(int c)

Arguments

Type

Name

Description

int

c

GetFontMatrix

Source code

public virtual double GetFontMatrix()

GetRawCharBBox

protected abstract int GetRawCharBBox(int c, string name)

Arguments

Type

Name

Description

int

c

string

name

CorrectArabicAdvance

Source code

public virtual void CorrectArabicAdvance()

AddSubsetRange

Source code

public virtual void AddSubsetRange(int[] range)

Arguments

Type

Name

Description

int``[]

range

Properties

SubsetRanges

public virtual List<int> SubsetRanges { get; }

Encoding

public virtual string Encoding { get; }

FontType

public virtual int FontType { get; set; }

PostscriptFontName

public abstract string PostscriptFontName { get; set; }

Subfamily

public virtual string Subfamily { get; }

FullFontName

public abstract string FullFontName { get; }

AllNameEntries

public abstract string AllNameEntries { get; }

FamilyFontName

public abstract string FamilyFontName { get; }

CodePagesSupported

public virtual string CodePagesSupported { get; }

Widths

public virtual int Widths { get; }

Differences

public virtual string Differences { get; }

UnicodeDifferences

public virtual char UnicodeDifferences { get; }

ForceWidthsOutput

public virtual bool ForceWidthsOutput { get; set; }

DirectTextToByte

public virtual bool DirectTextToByte { get; set; }

Subset

public virtual bool Subset { get; set; }

CompressionLevel

public virtual int CompressionLevel { get; set; }

Generated with ModularDoc