java.lang.Object
eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
eu.europa.esig.dss.pdf.pdfbox.visible.defaultdrawer.JavaDSSFontMetrics
All Implemented Interfaces:
eu.europa.esig.dss.pdf.visible.DSSFontMetrics

public class JavaDSSFontMetrics extends eu.europa.esig.dss.pdf.visible.AbstractDSSFontMetrics
Contains font metrics for a Java font
  • Constructor Details

    • JavaDSSFontMetrics

      public JavaDSSFontMetrics(Font javaFont)
      Default constructor
      Parameters:
      javaFont - Font
  • Method Details

    • getWidth

      public float getWidth(String str, float size)
    • getHeight

      public float getHeight(String str, float size)
    • getMaxAscent

      public float getMaxAscent(float size)
      Returns the max ascent for the given font size
      Parameters:
      size - font size
      Returns:
      max ascent