Package com.openhtmltopdf.pdfboxout
Class PdfBoxFSFontMetrics
java.lang.Object
com.openhtmltopdf.pdfboxout.PdfBoxFSFontMetrics
- All Implemented Interfaces:
FSFontMetrics
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatprivate floatprivate floatprivate floatprivate floatprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatfloatIn keeping with the JDKLineMetricsconvention, this number is positive for values below the baseline.floatfloatfloatIn keeping with the JDKLineMetricsconvention, this number is positive for values below the baseline.floatvoidsetAscent(float ascent) voidsetDescent(float descent) voidsetStrikethroughOffset(float strikethroughOffset) voidsetStrikethroughThickness(float strikethroughThickness) voidsetUnderlineOffset(float underlineOffset) voidsetUnderlineThickness(float underlineThickness)
-
Field Details
-
_ascent
private float _ascent -
_descent
private float _descent -
_strikethroughOffset
private float _strikethroughOffset -
_strikethroughThickness
private float _strikethroughThickness -
_underlineOffset
private float _underlineOffset -
_underlineThickness
private float _underlineThickness
-
-
Constructor Details
-
PdfBoxFSFontMetrics
public PdfBoxFSFontMetrics()
-
-
Method Details
-
getAscent
public float getAscent()- Specified by:
getAscentin interfaceFSFontMetrics
-
setAscent
public void setAscent(float ascent) -
getDescent
public float getDescent()Description copied from interface:FSFontMetricsIn keeping with the JDKLineMetricsconvention, this number is positive for values below the baseline.- Specified by:
getDescentin interfaceFSFontMetrics
-
setDescent
public void setDescent(float descent) -
getStrikethroughOffset
public float getStrikethroughOffset()- Specified by:
getStrikethroughOffsetin interfaceFSFontMetrics
-
setStrikethroughOffset
public void setStrikethroughOffset(float strikethroughOffset) -
getStrikethroughThickness
public float getStrikethroughThickness()- Specified by:
getStrikethroughThicknessin interfaceFSFontMetrics
-
setStrikethroughThickness
public void setStrikethroughThickness(float strikethroughThickness) -
getUnderlineOffset
public float getUnderlineOffset()Description copied from interface:FSFontMetricsIn keeping with the JDKLineMetricsconvention, this number is positive for values below the baseline.- Specified by:
getUnderlineOffsetin interfaceFSFontMetrics
-
setUnderlineOffset
public void setUnderlineOffset(float underlineOffset) -
getUnderlineThickness
public float getUnderlineThickness()- Specified by:
getUnderlineThicknessin interfaceFSFontMetrics
-
setUnderlineThickness
public void setUnderlineThickness(float underlineThickness)
-