Table of Contents

Class Type3Font

Namespace
iText.Kernel.Font
Assembly
itext.kernel.dll

FontProgram class for Type 3 font.

public class Type3Font : FontProgram
Inheritance
Type3Font
Inherited Members

Remarks

FontProgram class for Type 3 font. Contains map of Type3Glyph. Type3Glyphs belong to a particular pdf document. Note, an instance of Type3Font can not be reused for multiple pdf documents.

Methods

GetKerning(Glyph, Glyph)

public override int GetKerning(Glyph glyph1, Glyph glyph2)

Parameters

glyph1 Glyph
glyph2 Glyph

Returns

int

GetNumberOfGlyphs()

Returns number of glyphs for this font.

public virtual int GetNumberOfGlyphs()

Returns

int

int number off all glyphs

Remarks

Returns number of glyphs for this font. Its also count glyphs without unicode. See iText.Kernel.Font.Type3Font.type3GlyphsWithoutUnicode.

GetPdfFontFlags()

public override int GetPdfFontFlags()

Returns

int

GetType3Glyph(int)

Returns a glyph by unicode.

public virtual Type3Glyph GetType3Glyph(int unicode)

Parameters

unicode int

glyph unicode

Returns

Type3Glyph

Type3Glyph glyph, or null if this font does not contain glyph for the unicode

GetType3GlyphByCode(int)

Returns a glyph by its code.

public virtual Type3Glyph GetType3GlyphByCode(int code)

Parameters

code int

glyph code

Returns

Type3Glyph

Type3Glyph glyph, or null if this font does not contain glyph for the code

Remarks

Returns a glyph by its code. These glyphs may not have unicode.

IsColorized()

public virtual bool IsColorized()

Returns

bool

IsFontSpecific()

public override bool IsFontSpecific()

Returns

bool

SetCapHeight(int)

protected override void SetCapHeight(int capHeight)

Parameters

capHeight int

SetFontFamily(string)

Sets a preferred font family name.

protected override void SetFontFamily(string fontFamily)

Parameters

fontFamily string

a preferred font family name.

SetFontName(string)

Sets the PostScript name of the font.

protected override void SetFontName(string fontName)

Parameters

fontName string

the PostScript name of the font, shall not be null or empty.

Remarks

Sets the PostScript name of the font.

If full name is null, it will be set as well.

SetFontStretch(string)

Sets font width in css notation (font-stretch property)

protected override void SetFontStretch(string fontWidth)

Parameters

fontWidth string

FontStretches.

SetFontWeight(int)

Sets font weight.

protected override void SetFontWeight(int fontWeight)

Parameters

fontWeight int

integer form 100 to 900. See FontWeights.

SetItalicAngle(int)

protected override void SetItalicAngle(int italicAngle)

Parameters

italicAngle int

SetTypoAscender(int)

protected override void SetTypoAscender(int ascender)

Parameters

ascender int

SetTypoDescender(int)

protected override void SetTypoDescender(int descender)

Parameters

descender int