Package com.openhtmltopdf.pdfboxout
Class PdfBoxRawPDFontMetrics
java.lang.Object
com.openhtmltopdf.pdfboxout.PdfBoxRawPDFontMetrics
- All Implemented Interfaces:
FSCacheValue
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal float
final float
final float
final float
final float
final float
-
Constructor Summary
ConstructorsConstructorDescriptionPdfBoxRawPDFontMetrics
(float ascent, float descent, float strikethroughOffset, float strikethroughThickness, float underlinePosition, float underlineThickness) -
Method Summary
Modifier and TypeMethodDescriptionstatic PdfBoxRawPDFontMetrics
fromPdfBox
(org.apache.pdfbox.pdmodel.font.PDFont font, org.apache.pdfbox.pdmodel.font.PDFontDescriptor descriptor) int
weight()
-
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 interfaceFSCacheValue
- Returns:
- the (very) approximate weight of a cache value in bytes if known or -1 otherwise.
-