Package org.apache.fop.fonts
Class Base14Font
java.lang.Object
org.apache.fop.fonts.Typeface
org.apache.fop.fonts.Base14Font
- All Implemented Interfaces:
FontMetrics
- Direct Known Subclasses:
Courier,CourierBold,CourierBoldOblique,CourierOblique,Helvetica,HelveticaBold,HelveticaBoldOblique,HelveticaOblique,Symbol,TimesBold,TimesBoldItalic,TimesItalic,TimesRoman,ZapfDingbats
Base class for all Base 14 fonts.
-
Field Summary
Fields inherited from class org.apache.fop.fonts.Typeface
eventListener, NOT_FOUND -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetStrikeoutPosition(int size) Returns the distance from the baseline to the center of the strikeout line (negative value indicates below baseline).intgetStrikeoutThickness(int size) Returns the thickness of the strikeout line.Methods inherited from class org.apache.fop.fonts.Typeface
getEncodingName, getMaxAscent, hadMappingOperations, hasChar, hasFeature, isCID, isMultiByte, mapChar, notifyMapOperation, setEventListener, toString, warnMissingGlyphMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.fop.fonts.FontMetrics
getAscender, getBoundingBox, getCapHeight, getDescender, getEmbedFontName, getFamilyNames, getFontName, getFontType, getFontURI, getFullName, getKerningInfo, getUnderlinePosition, getUnderlineThickness, getWidth, getWidths, getXHeight, hasKerningInfo
-
Constructor Details
-
Base14Font
public Base14Font()
-
-
Method Details
-
getStrikeoutPosition
public int getStrikeoutPosition(int size) Description copied from interface:FontMetricsReturns the distance from the baseline to the center of the strikeout line (negative value indicates below baseline).- Parameters:
size- font size- Returns:
- the position in 1/1000ths of the font size
-
getStrikeoutThickness
public int getStrikeoutThickness(int size) Description copied from interface:FontMetricsReturns the thickness of the strikeout line.- Parameters:
size- font size- Returns:
- the thickness in 1/1000ths of the font size
-