Class Type3Font
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
Returns
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
GetType3Glyph(int)
Returns a glyph by unicode.
public virtual Type3Glyph GetType3Glyph(int unicode)
Parameters
unicode
intglyph 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
intglyph 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
IsFontSpecific()
public override bool IsFontSpecific()
Returns
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
stringa preferred font family name.
SetFontName(string)
Sets the PostScript name of the font.
protected override void SetFontName(string fontName)
Parameters
fontName
stringthe 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
SetFontWeight(int)
Sets font weight.
protected override void SetFontWeight(int fontWeight)
Parameters
fontWeight
intinteger 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