iText 8.0.2 API
iText.IO.Font.FontMetrics Class Reference

Public Member Functions

virtual int  GetUnitsPerEm ()
 
virtual int  GetNumberOfGlyphs ()
 
virtual int[]  GetGlyphWidths ()
 
virtual int  GetTypoAscender ()
  Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender. More...
 
virtual int  GetTypoDescender ()
  Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender. More...
 
virtual int  GetCapHeight ()
  Gets the capital letters height. More...
 
virtual int  GetXHeight ()
 
virtual float  GetItalicAngle ()
 
virtual int[]  GetBbox ()
 
virtual void  SetBbox (int llx, int lly, int urx, int ury)
 
virtual int  GetAscender ()
 
virtual int  GetDescender ()
 
virtual int  GetLineGap ()
 
virtual int  GetWinAscender ()
 
virtual int  GetWinDescender ()
 
virtual int  GetAdvanceWidthMax ()
 
virtual int  GetUnderlinePosition ()
 
virtual int  GetUnderlineThickness ()
 
virtual int  GetStrikeoutPosition ()
 
virtual int  GetStrikeoutSize ()
 
virtual int  GetSubscriptSize ()
 
virtual int  GetSubscriptOffset ()
 
virtual int  GetSuperscriptSize ()
 
virtual int  GetSuperscriptOffset ()
 
virtual int  GetStemV ()
 
virtual int  GetStemH ()
 
virtual bool  IsFixedPitch ()
 
virtual void  SetStemV (int stemV)
 

Member Function Documentation

◆ GetCapHeight()

virtual int iText.IO.Font.FontMetrics.GetCapHeight ( )
inlinevirtual

Gets the capital letters height.

Gets the capital letters height.

This property defines the vertical coordinate of the top of flat capital letters, measured from the baseline.

Returns
cap height in 1000-units

◆ GetTypoAscender()

virtual int iText.IO.Font.FontMetrics.GetTypoAscender ( )
inlinevirtual

Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender.

Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender.

Typo vertical metrics are the primary source for iText ascender/descender calculations.

Returns
typo ascender value in normalized 1000-units

◆ GetTypoDescender()

virtual int iText.IO.Font.FontMetrics.GetTypoDescender ( )
inlinevirtual

Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender.

Gets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender.

Typo vertical metrics are the primary source for iText ascender/descender calculations.

Returns
typo descender value in normalized 1000-units