Package com.openhtmltopdf.pdfboxout
Class PdfBoxFSFontMetrics
- java.lang.Object
-
- com.openhtmltopdf.pdfboxout.PdfBoxFSFontMetrics
-
- All Implemented Interfaces:
FSFontMetrics
public class PdfBoxFSFontMetrics extends java.lang.Object implements FSFontMetrics
-
-
Field Summary
Fields Modifier and Type Field Description private float
_ascent
private float
_descent
private float
_strikethroughOffset
private float
_strikethroughThickness
private float
_underlineOffset
private float
_underlineThickness
-
Constructor Summary
Constructors Constructor Description PdfBoxFSFontMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getAscent()
float
getDescent()
In keeping with the JDKLineMetrics
convention, this number is positive for values below the baseline.float
getStrikethroughOffset()
float
getStrikethroughThickness()
float
getUnderlineOffset()
In keeping with the JDKLineMetrics
convention, this number is positive for values below the baseline.float
getUnderlineThickness()
void
setAscent(float ascent)
void
setDescent(float descent)
void
setStrikethroughOffset(float strikethroughOffset)
void
setStrikethroughThickness(float strikethroughThickness)
void
setUnderlineOffset(float underlineOffset)
void
setUnderlineThickness(float underlineThickness)
-
-
-
Method Detail
-
getAscent
public float getAscent()
- Specified by:
getAscent
in interfaceFSFontMetrics
-
setAscent
public void setAscent(float ascent)
-
getDescent
public float getDescent()
Description copied from interface:FSFontMetrics
In keeping with the JDKLineMetrics
convention, this number is positive for values below the baseline.- Specified by:
getDescent
in interfaceFSFontMetrics
-
setDescent
public void setDescent(float descent)
-
getStrikethroughOffset
public float getStrikethroughOffset()
- Specified by:
getStrikethroughOffset
in interfaceFSFontMetrics
-
setStrikethroughOffset
public void setStrikethroughOffset(float strikethroughOffset)
-
getStrikethroughThickness
public float getStrikethroughThickness()
- Specified by:
getStrikethroughThickness
in interfaceFSFontMetrics
-
setStrikethroughThickness
public void setStrikethroughThickness(float strikethroughThickness)
-
getUnderlineOffset
public float getUnderlineOffset()
Description copied from interface:FSFontMetrics
In keeping with the JDKLineMetrics
convention, this number is positive for values below the baseline.- Specified by:
getUnderlineOffset
in interfaceFSFontMetrics
-
setUnderlineOffset
public void setUnderlineOffset(float underlineOffset)
-
getUnderlineThickness
public float getUnderlineThickness()
- Specified by:
getUnderlineThickness
in interfaceFSFontMetrics
-
setUnderlineThickness
public void setUnderlineThickness(float underlineThickness)
-
-