Class PdfBoxRawPDFontMetrics

java.lang.Object
com.openhtmltopdf.pdfboxout.PdfBoxRawPDFontMetrics
All Implemented Interfaces:
com.openhtmltopdf.extend.FSCacheValue

public class PdfBoxRawPDFontMetrics
extends Object
implements com.openhtmltopdf.extend.FSCacheValue
  • Field Details

    • _ascent

      public final float _ascent
    • _descent

      public final float _descent
    • _strikethroughOffset

      public final float _strikethroughOffset
    • _strikethroughThickness

      public final float _strikethroughThickness
    • _underlinePosition

      public final float _underlinePosition
    • _underlineThickness

      public final float _underlineThickness
  • Constructor Details

    • PdfBoxRawPDFontMetrics

      public PdfBoxRawPDFontMetrics​(float ascent, float descent, float strikethroughOffset, float strikethroughThickness, float underlinePosition, float underlineThickness)
  • Method Details

    • fromPdfBox

      public static PdfBoxRawPDFontMetrics fromPdfBox​(org.apache.pdfbox.pdmodel.font.PDFont font, org.apache.pdfbox.pdmodel.font.PDFontDescriptor descriptor) throws IOException
      Throws:
      IOException
    • weight

      public int weight()
      Specified by:
      weight in interface com.openhtmltopdf.extend.FSCacheValue