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
FieldsModifier and TypeFieldDescriptionprivate static final intThickness for underline and strikeout.Fields inherited from class 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 Typeface
getEncodingName, getMaxAscent, hadMappingOperations, hasChar, hasFeature, isCID, isMultiByte, mapChar, notifyMapOperation, setEventListener, toString, warnMissingGlyphMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface FontMetrics
getAscender, getBoundingBox, getCapHeight, getDescender, getEmbedFontName, getFamilyNames, getFontName, getFontType, getFontURI, getFullName, getKerningInfo, getUnderlinePosition, getUnderlineThickness, getWidth, getWidths, getXHeight, hasKerningInfo
-
Field Details
-
LINE_THICKNESS
private static final int LINE_THICKNESSThickness for underline and strikeout.- See Also:
-
-
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
-