iText 8.0.2 API
iText.Kernel.Font.Type3Font Class Reference

FontProgram class for Type 3 font. More...

Inheritance diagram for iText.Kernel.Font.Type3Font:
iText.IO.Font.FontProgram

Public Member Functions

virtual Type3Glyph  GetType3Glyph (int unicode)
  Returns a glyph by unicode. More...
 
virtual Type3Glyph  GetType3GlyphByCode (int code)
  Returns a glyph by its code. More...
 
override int  GetPdfFontFlags ()
 
override bool  IsFontSpecific ()
 
virtual bool  IsColorized ()
 
override int  GetKerning (Glyph glyph1, Glyph glyph2)
  Gets the kerning between two glyphs. More...
 
virtual int  GetNumberOfGlyphs ()
  Returns number of glyphs for this font. More...
 
- Public Member Functions inherited from iText.IO.Font.FontProgram
virtual int  CountOfGlyphs ()
 
virtual FontNames  GetFontNames ()
 
virtual FontMetrics  GetFontMetrics ()
 
virtual FontIdentification  GetFontIdentification ()
 
virtual String  GetRegistry ()
 
virtual int  GetWidth (int unicode)
  Get glyph's width. More...
 
virtual int  GetAvgWidth ()
 
virtual int[]  GetCharBBox (int unicode)
  Get glyph's bbox. More...
 
virtual Glyph  GetGlyph (int unicode)
 
virtual Glyph  GetGlyphByCode (int charCode)
 
virtual bool  HasKernPairs ()
 
virtual int  GetKerning (int first, int second)
  Gets the kerning between two glyphs. More...
 
virtual bool  IsBuiltWith (String fontName)
  Checks whether the FontProgram was built with corresponding fontName. More...
 
override String  ToString ()
 

Additional Inherited Members

- Static Public Member Functions inherited from iText.IO.Font.FontProgram
static float  ConvertTextSpaceToGlyphSpace (float value)
 
static float  ConvertGlyphSpaceToTextSpace (float value)
 
static double  ConvertGlyphSpaceToTextSpace (double value)
 
static int  ConvertGlyphSpaceToTextSpace (int value)
 
- Static Public Attributes inherited from iText.IO.Font.FontProgram
const int  HORIZONTAL_SCALING_FACTOR = 100
 
const int  DEFAULT_WIDTH = 1000
 
const int  UNITS_NORMALIZATION = 1000
 

Detailed Description

FontProgram class for Type 3 font.

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.

Member Function Documentation

◆ GetKerning()

override int iText.Kernel.Font.Type3Font.GetKerning ( Glyph  first,
Glyph  second 
)
inlinevirtual

Gets the kerning between two glyphs.

Parameters
first the first glyph
second the second glyph
Returns
the kerning to be applied

Implements iText.IO.Font.FontProgram.

◆ GetNumberOfGlyphs()

virtual int iText.Kernel.Font.Type3Font.GetNumberOfGlyphs ( )
inlinevirtual

Returns number of glyphs for this font.

Returns number of glyphs for this font. Its also count glyphs without unicode. See type3GlyphsWithoutUnicode.

Returns

int number off all glyphs

◆ GetType3Glyph()

virtual Type3Glyph iText.Kernel.Font.Type3Font.GetType3Glyph ( int  unicode )
inlinevirtual

Returns a glyph by unicode.

Parameters
unicode glyph unicode
Returns

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

◆ GetType3GlyphByCode()

virtual Type3Glyph iText.Kernel.Font.Type3Font.GetType3GlyphByCode ( int  code )
inlinevirtual

Returns a glyph by its code.

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

Parameters
code glyph code
Returns

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