Class ITextFontMetrics

java.lang.Object
eu.europa.esig.dss.pdf.visible.AbstractFontMetrics
eu.europa.esig.dss.pdf.openpdf.visible.ITextFontMetrics

public class ITextFontMetrics
extends AbstractFontMetrics
The IText (OpenPDF) implementation of Font metrics
  • Constructor Details

    • ITextFontMetrics

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

    • getWidth

      public float getWidth​(String str, float size)
      Description copied from class: AbstractFontMetrics
      Computes a width for a string of a given size
      Specified by:
      getWidth in class AbstractFontMetrics
      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 class: AbstractFontMetrics
      Computes a height for a string of a given size
      Specified by:
      getHeight in class AbstractFontMetrics
      Parameters:
      str - String to get height of
      size - of a string
      Returns:
      string width
    • getAscentPoint

      public float getAscentPoint​(String str, float size)
    • getDescentPoint

      public float getDescentPoint​(String str, float size)