iText 8.0.5 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)
 

Package Functions

virtual void  SetUnitsPerEm (int unitsPerEm)
 
virtual void  UpdateBbox (float llx, float lly, float urx, float ury)
 
virtual void  SetNumberOfGlyphs (int numOfGlyphs)
 
virtual void  SetGlyphWidths (int[] glyphWidths)
 
virtual void  SetTypoAscender (int typoAscender)
  Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to ascender. More...
 
virtual void  SetTypoDescender (int typoDescender)
  Sets typo (a.k.a. sTypo or OS/2) vertical metric corresponding to descender. More...
 
virtual void  SetCapHeight (int capHeight)
  Sets the capital letters height. More...
 
virtual void  SetXHeight (int xHeight)
 
virtual void  SetItalicAngle (float italicAngle)
 
virtual void  SetAscender (int ascender)
 
virtual void  SetDescender (int descender)
 
virtual void  SetLineGap (int lineGap)
 
virtual void  SetWinAscender (int winAscender)
 
virtual void  SetWinDescender (int winDescender)
 
virtual void  SetAdvanceWidthMax (int advanceWidthMax)
 
virtual void  SetUnderlinePosition (int underlinePosition)
 
virtual void  SetUnderlineThickness (int underineThickness)
 
virtual void  SetStrikeoutPosition (int strikeoutPosition)
 
virtual void  SetStrikeoutSize (int strikeoutSize)
 
virtual void  SetSubscriptSize (int subscriptSize)
 
virtual void  SetSubscriptOffset (int subscriptOffset)
 
virtual void  SetSuperscriptSize (int superscriptSize)
 
virtual void  SetSuperscriptOffset (int superscriptOffset)
 
virtual void  SetStemH (int stemH)
 
virtual void  SetIsFixedPitch (bool isFixedPitch)
 

Package Attributes

float  normalizationCoef = 1f
 

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

◆ SetCapHeight()

virtual void iText.IO.Font.FontMetrics.SetCapHeight ( int  capHeight )
inlinepackagevirtual

Sets the capital letters height.

Sets the capital letters height.

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

Parameters
capHeight cap height in 1000-units

◆ SetTypoAscender()

virtual void iText.IO.Font.FontMetrics.SetTypoAscender ( int  typoAscender )
inlinepackagevirtual

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

Sets 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.

Parameters
typoAscender typo ascender value in normalized 1000-units

◆ SetTypoDescender()

virtual void iText.IO.Font.FontMetrics.SetTypoDescender ( int  typoDescender )
inlinepackagevirtual

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

Sets 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.

Parameters
typoDescender typo descender value in normalized 1000-units