Class ITextDSSFontMetrics

java.lang.Object
eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
eu.europa.esig.dss.pdf.openpdf.visible.ITextDSSFontMetrics
All Implemented Interfaces:
DSSFontMetrics

public class ITextDSSFontMetrics extends AbstractDSSFontMetrics
The IText (OpenPDF) implementation of Font metrics
  • Constructor Details

    • ITextDSSFontMetrics

      public ITextDSSFontMetrics(com.lowagie.text.pdf.BaseFont baseFont)
      Default constructor
      Parameters:
      baseFont - BaseFont
  • Method Details

    • getWidth

      public float getWidth(String str, float size)
      Description copied from interface: DSSFontMetrics
      Computes a width for a string of a given size
      Parameters:
      str - String to get width of
      size - of a string
      Returns:
      string width
    • getHeight

      public float getHeight(String str, float size)
      Description copied from interface: DSSFontMetrics
      Computes a height for a string of a given size
      Parameters:
      str - String to get height of
      size - of a string
      Returns:
      string width
    • getAscentPoint

      public float getAscentPoint(String str, float size)
      Returns the ascent point
      Parameters:
      str - String to get value for
      size - the size of the string
      Returns:
      ascent point
    • getDescentPoint

      public float getDescentPoint(String str, float size)
      Returns the descent point
      Parameters:
      str - String to get value for
      size - the size of the string
      Returns:
      descent point