Package org.xhtmlrenderer.swt
Class SWTFontMetricsAdapter
java.lang.Object
org.xhtmlrenderer.swt.SWTFontMetricsAdapter
- All Implemented Interfaces:
FSFontMetrics
Adapt SWT's font metrics to Flying Saucer's ones.
-
Field Summary
Fields -
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.float
-
Field Details
-
_fm
private final org.eclipse.swt.graphics.FontMetrics _fm
-
-
Constructor Details
-
SWTFontMetricsAdapter
-
-
Method Details
-
getAscent
public float getAscent()- Specified by:
getAscentin interfaceFSFontMetrics
-
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
-
getStrikethroughOffset
public float getStrikethroughOffset()- Specified by:
getStrikethroughOffsetin interfaceFSFontMetrics
-
getStrikethroughThickness
public float getStrikethroughThickness()- Specified by:
getStrikethroughThicknessin interfaceFSFontMetrics
-
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
-
getUnderlineThickness
public float getUnderlineThickness()- Specified by:
getUnderlineThicknessin interfaceFSFontMetrics
-