Table of Contents

Class Type1Font

Namespace
iText.IO.Font
Assembly
itext.io.dll
public class Type1Font : FontProgram
Inheritance
Type1Font
Inherited Members

Constructors

Type1Font()

protected Type1Font()

Type1Font(string)

protected Type1Font(string baseFont)

Parameters

baseFont string

Type1Font(string, string, byte[], byte[])

protected Type1Font(string metricsPath, string binaryPath, byte[] afm, byte[] pfb)

Parameters

metricsPath string
binaryPath string
afm byte[]
pfb byte[]

Methods

CreateStandardFont(string)

protected static Type1Font CreateStandardFont(string name)

Parameters

name string

Returns

Type1Font

GetCharacterSet()

public virtual string GetCharacterSet()

Returns

string

GetFontStreamBytes()

public virtual byte[] GetFontStreamBytes()

Returns

byte[]

GetFontStreamLengths()

public virtual int[] GetFontStreamLengths()

Returns

int[]

GetGlyph(string)

Find glyph by glyph name.

public virtual Glyph GetGlyph(string name)

Parameters

name string

Glyph name

Returns

Glyph

Glyph instance if found, otherwise null.

GetKerning(Glyph, Glyph)

public override int GetKerning(Glyph first, Glyph second)

Parameters

first Glyph
second Glyph

Returns

int

GetPdfFontFlags()

public override int GetPdfFontFlags()

Returns

int

HasKernPairs()

Checks if the font has any kerning pairs.

public override bool HasKernPairs()

Returns

bool

true if the font has any kerning pairs.

InitializeGlyphs(FontEncoding)

Fills missing character codes in codeToGlyph map.

public virtual void InitializeGlyphs(FontEncoding fontEncoding)

Parameters

fontEncoding FontEncoding

to be used to map unicode values to character codes.

IsBuiltInFont()

public virtual bool IsBuiltInFont()

Returns

bool

IsBuiltWith(string)

public override bool IsBuiltWith(string fontProgram)

Parameters

fontProgram string

Returns

bool

Process()

protected virtual void Process()

SetKerning(int, int, int)

Sets the kerning between two Unicode chars.

public virtual bool SetKerning(int first, int second, int kern)

Parameters

first int

the first unicode char.

second int

the second unicode char.

kern int

the kerning to apply in normalized 1000 units.

Returns

bool

true if the kerning was applied, false otherwise.