iText 7 7.1.9 API
iText.IO.Font.FontProgram Class Referenceabstract
Inheritance diagram for iText.IO.Font.FontProgram:
iText.IO.Font.CidFont iText.IO.Font.TrueTypeFont iText.IO.Font.Type1Font iText.Kernel.Font.Type3Font

Public Member Functions

virtual int CountOfGlyphs ()
 
virtual FontNames GetFontNames ()
 
virtual FontMetrics GetFontMetrics ()
 
virtual FontIdentification GetFontIdentification ()
 
virtual String GetRegistry ()
 
abstract int GetPdfFontFlags ()
 
virtual bool IsFontSpecific ()
 
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...
 
abstract int GetKerning (Glyph first, Glyph 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 ()
 

Static Public Attributes

const int DEFAULT_WIDTH = 1000
 
const int UNITS_NORMALIZATION = 1000
 

Member Function Documentation

◆ GetCharBBox()

virtual int [] iText.IO.Font.FontProgram.GetCharBBox ( int  unicode)
inlinevirtual

Get glyph's bbox.

Parameters
unicodea unicode symbol or FontSpecif code.
Returns
Gets bbox in normalized 1000 units.

◆ GetKerning() [1/2]

abstract int iText.IO.Font.FontProgram.GetKerning ( Glyph  first,
Glyph  second 
)
pure virtual

Gets the kerning between two glyphs.

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

Implemented in iText.Kernel.Font.Type3Font, iText.IO.Font.CidFont, iText.IO.Font.Type1Font, and iText.IO.Font.TrueTypeFont.

◆ GetKerning() [2/2]

virtual int iText.IO.Font.FontProgram.GetKerning ( int  first,
int  second 
)
inlinevirtual

Gets the kerning between two glyphs.

Parameters
firstthe first unicode value
secondthe second unicode value
Returns
the kerning to be applied

◆ GetWidth()

virtual int iText.IO.Font.FontProgram.GetWidth ( int  unicode)
inlinevirtual

Get glyph's width.

Parameters
unicodea unicode symbol or FontSpecif code.
Returns
Gets width in normalized 1000 units.

◆ IsBuiltWith()

virtual bool iText.IO.Font.FontProgram.IsBuiltWith ( String  fontName)
inlinevirtual

Checks whether the FontProgram was built with corresponding fontName.

Checks whether the FontProgram was built with corresponding fontName. Default value is false unless overridden.

Parameters
fontNamea font name or path to a font program
Returns
true, if the FontProgram was built with the fontProgram. Otherwise false.

Reimplemented in iText.IO.Font.TrueTypeFont, iText.IO.Font.Type1Font, and iText.IO.Font.CidFont.