SourceForge.net Logo
aXSL API 0.1

org.axsl.fontR
Interface Font

All Superinterfaces:
java.lang.Comparable

public interface Font
extends java.lang.Comparable

The Font interface exposes a font resource to the client application.


Field Summary
static byte FONT_COMPLEXITY_UNKNOWN
          Font-complexity constant indicating that the complexity is not known.
static byte FONT_COMPOSITE
          Font-complexity constant indicating that the font is a composite font.
static byte FONT_SELECTION_AUTO
          font-selection-strategy constant indicating "auto".
static byte FONT_SELECTION_CBC
          font-selection-strategy constant indicating "character-by-character".
static byte FONT_SIMPLE
          Font-complexity constant indicating that the font is a simple font.
static byte FONT_STRETCH_ANY
          Font-stretch constant indicating no preference.
static byte FONT_STRETCH_CONDENSED
          Font-stretch constant indicating condensed.
static byte FONT_STRETCH_EXPANDED
          Font-stretch constant indicating expanded.
static byte FONT_STRETCH_EXTRA_CONDENSED
          Font-stretch constant indicating extra-condensed.
static byte FONT_STRETCH_EXTRA_EXPANDED
          Font-stretch constant indicating extra-expanded.
static byte FONT_STRETCH_NORMAL
          Font-stretch constant indicating normal.
static byte FONT_STRETCH_SEMI_CONDENSED
          Font-stretch constant indicating semi-condensed.
static byte FONT_STRETCH_SEMI_EXPANDED
          Font-stretch constant indicating semi-expanded.
static byte FONT_STRETCH_ULTRA_CONDENSED
          Font-stretch constant indicating ultra-condensed.
static byte FONT_STRETCH_ULTRA_EXPANDED
          Font-stretch constant indicating ultra-expanded.
static byte FONT_STYLE_ANY
          Font-style constant indicating no preference.
static byte FONT_STYLE_BACKSLANT
          Font-style constant indicating a backslant typeface.
static byte FONT_STYLE_ITALIC
          Font-style constant indicating an italic typeface.
static byte FONT_STYLE_NORMAL
          Font-style constant indicating an upright (Roman) typeface.
static byte FONT_STYLE_OBLIQUE
          Font-style constant indicating an oblique typeface.
static byte FONT_VARIANT_ANY
          Font-variant constant indicating no preference.
static byte FONT_VARIANT_NORMAL
          Font-variant constant indicating that small-caps is not on.
static byte FONT_VARIANT_SMALL_CAPS
          Font-variant constant indicating that small-caps is on.
static short FONT_WEIGHT_100
          Font-weight constant indicating a weight of 100 (extremely light).
static short FONT_WEIGHT_200
          Font-weight constant indicating a weight of 200 (very light).
static short FONT_WEIGHT_300
          Font-weight constant indicating a weight of 300 (light).
static short FONT_WEIGHT_400
          Font-weight constant indicating a weight of 400 (normal).
static short FONT_WEIGHT_500
          Font-weight constant indicating a weight of 500 (dark).
static short FONT_WEIGHT_600
          Font-weight constant indicating a weight of 600 (semi-bold).
static short FONT_WEIGHT_700
          Font-weight constant indicating a weight of 700 (bold).
static short FONT_WEIGHT_800
          Font-weight constant indicating a weight of 800 (extra bold).
static short FONT_WEIGHT_900
          Font-weight constant indicating a weight of 900 (black).
static short FONT_WEIGHT_ANY
          Font-weight constant indicating no preference.
static short FONT_WEIGHT_BOLD
          Font-weight constant indicating a weight of "bold", which is the same as FONT_WEIGHT_700.
static short FONT_WEIGHT_NORMAL
          Font-weight constant indicating a weight of "normal", which is the same as FONT_WEIGHT_400.
static byte FORMAT_OTF_CFF
          Font-format constant indicating that the font is an OpenType font with Compact Font Format (CFF) data (no TrueType outlines).
static byte FORMAT_OTF_TRUETYPE
          Font-format constant indicating that the font is an OpenType font with TrueType outlines.
static byte FORMAT_TRUETYPE
          Font-format constant indicating that the font is a TrueType font.
static byte FORMAT_TYPE1
          Font-format constant indicating that the font is a Type1 font.
static byte FORMAT_UNKNOWN
          Font-format constant indicating that the font's format is not known.
static char INVALID_UNICODE_CHARACTER
          Constant defining an invalid character value.
static byte LH_ALGORITHM_DEFAULT
          Normal line-height computation constant indicating that the implementation is in complete control of the normal line-height computation.
static byte WRITING_MODE_HORIZONTAL
          Constant indicating the writing mode is horizontal.
static byte WRITING_MODE_VERTICAL
          Constant indicating the writing mode is vertical.
 
Method Summary
 int baseline(java.lang.String script)
          Determines which baseline should be used by this font for a specified script.
 int baselineOffset(int writingMode, int baselineType, int fontSize)
          Returns the location of the specified baseline.
 int getAscender(int fontSize)
          Returns the Ascender value for this font, scaled to a specific point size.
 java.awt.Font getAWTFont(int fontSize)
          If this Font has a java.awt.Font associated with it, return it.
 int getCapHeight(int fontSize)
          Returns the CapHeight value for this font, scaled to a specific point size.
 int getDefaultWidth()
          Returns the default glyph width for this font.
 int getDescender(int fontSize)
          Returns the Descender value for this font, scaled to a specific point size.
 java.lang.String getFamilyName()
          Returns this font's font-family name.
 byte getFontComplexity()
          Returns a value indicating whether this font is a simple or composite font.
 byte getFontFormat()
          Returns a value indicating what format (e.g.
 java.lang.String getFontName()
          Returns this font's name.
 Encoding getInternalEncoding()
          Get the font's internal Encoding scheme.
 float getItalicAngle()
          Returns the ItalicAngle value for this font.
 java.lang.String getPostscriptName()
          Returns the PostScript name of the font.
 int getStemV()
          Returns the StemV value for this font, used in a PDF Font Descriptor, as defined in the PDF Reference, Second Edition, Section 5.7.
 int getXHeight(int fontSize)
          Returns the XHeight value for this font, scaled to a specific point size.
 boolean isEmbeddable()
          Tells the client application whether this font can be embedded or not.
 boolean isPDFStandardFont()
          Indicates whether this font is one of the PDF Base-14 fonts.
 boolean isSubsettable()
          Tells the client application whether a subset of this font can be embedded.
 int kern(int char1, int char2)
          Computes the kerning needed between two glyphs in this font.
 float normalLineHeightFactor(int algorithm)
          Returns a factor suitable for computing a "normal" line-height as defined in the CSS and XSL-FO standards.
 int overlinePosition(int fontSize)
          The recommended position of the bottom of the overline stroke, relative to the baseline, in millipoints.
 int overlineSize(int fontSize)
          The recommended thickness, in millipoints, of the overline stroke for this font.
 int strikeoutPosition(int fontSize)
          The recommended position of the top of the strikeout stroke, relative to the baseline, in millipoints.
 int strikeoutSize(int fontSize)
          The recommended thickness, in millipoints, of the strikeout stroke for this font.
 int underlinePosition(int fontSize)
          The recommended position of the top of the underline stroke, relative to the baseline, in millipoints.
 int underlineSize(int fontSize)
          The recommended thickness, in millipoints, of the underline stroke for this font.
 boolean usableInPostScriptOutput()
          Indicates whether this font can be referenced within a PostScript file.
 int width(java.lang.CharSequence chars, int fontSize, int letterSpacing, int wordSpacing)
          Calculates the width of a given String, considering letter spacing, word spacing, and kerning.
 int width(int codePoint, int fontSize)
          Returns the width of a Unicode character for this font, at a specified point size.
 int widthEstimate(int codePoint, int fontSize)
          Returns the estimated width of a Unicode character for this font, at a specified point size.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

INVALID_UNICODE_CHARACTER

public static final char INVALID_UNICODE_CHARACTER
Constant defining an invalid character value.

See Also:
Constant Field Values

FONT_STYLE_NORMAL

public static final byte FONT_STYLE_NORMAL
Font-style constant indicating an upright (Roman) typeface.

See Also:
Constant Field Values

FONT_STYLE_ITALIC

public static final byte FONT_STYLE_ITALIC
Font-style constant indicating an italic typeface.

See Also:
Constant Field Values

FONT_STYLE_OBLIQUE

public static final byte FONT_STYLE_OBLIQUE
Font-style constant indicating an oblique typeface.

See Also:
Constant Field Values

FONT_STYLE_BACKSLANT

public static final byte FONT_STYLE_BACKSLANT
Font-style constant indicating a backslant typeface.

See Also:
Constant Field Values

FONT_STYLE_ANY

public static final byte FONT_STYLE_ANY
Font-style constant indicating no preference.

See Also:
Constant Field Values

FONT_WEIGHT_100

public static final short FONT_WEIGHT_100
Font-weight constant indicating a weight of 100 (extremely light).

See Also:
Constant Field Values

FONT_WEIGHT_200

public static final short FONT_WEIGHT_200
Font-weight constant indicating a weight of 200 (very light).

See Also:
Constant Field Values

FONT_WEIGHT_300

public static final short FONT_WEIGHT_300
Font-weight constant indicating a weight of 300 (light).

See Also:
Constant Field Values

FONT_WEIGHT_400

public static final short FONT_WEIGHT_400
Font-weight constant indicating a weight of 400 (normal).

See Also:
Constant Field Values

FONT_WEIGHT_500

public static final short FONT_WEIGHT_500
Font-weight constant indicating a weight of 500 (dark).

See Also:
Constant Field Values

FONT_WEIGHT_600

public static final short FONT_WEIGHT_600
Font-weight constant indicating a weight of 600 (semi-bold).

See Also:
Constant Field Values

FONT_WEIGHT_700

public static final short FONT_WEIGHT_700
Font-weight constant indicating a weight of 700 (bold).

See Also:
Constant Field Values

FONT_WEIGHT_800

public static final short FONT_WEIGHT_800
Font-weight constant indicating a weight of 800 (extra bold).

See Also:
Constant Field Values

FONT_WEIGHT_900

public static final short FONT_WEIGHT_900
Font-weight constant indicating a weight of 900 (black).

See Also:
Constant Field Values

FONT_WEIGHT_NORMAL

public static final short FONT_WEIGHT_NORMAL
Font-weight constant indicating a weight of "normal", which is the same as FONT_WEIGHT_400.

See Also:
Constant Field Values

FONT_WEIGHT_BOLD

public static final short FONT_WEIGHT_BOLD
Font-weight constant indicating a weight of "bold", which is the same as FONT_WEIGHT_700.

See Also:
Constant Field Values

FONT_WEIGHT_ANY

public static final short FONT_WEIGHT_ANY
Font-weight constant indicating no preference.

See Also:
Constant Field Values

FONT_VARIANT_NORMAL

public static final byte FONT_VARIANT_NORMAL
Font-variant constant indicating that small-caps is not on.

See Also:
Constant Field Values

FONT_VARIANT_SMALL_CAPS

public static final byte FONT_VARIANT_SMALL_CAPS
Font-variant constant indicating that small-caps is on.

See Also:
Constant Field Values

FONT_VARIANT_ANY

public static final byte FONT_VARIANT_ANY
Font-variant constant indicating no preference.

See Also:
Constant Field Values

FONT_STRETCH_ULTRA_CONDENSED

public static final byte FONT_STRETCH_ULTRA_CONDENSED
Font-stretch constant indicating ultra-condensed.

See Also:
Constant Field Values

FONT_STRETCH_EXTRA_CONDENSED

public static final byte FONT_STRETCH_EXTRA_CONDENSED
Font-stretch constant indicating extra-condensed.

See Also:
Constant Field Values

FONT_STRETCH_CONDENSED

public static final byte FONT_STRETCH_CONDENSED
Font-stretch constant indicating condensed.

See Also:
Constant Field Values

FONT_STRETCH_SEMI_CONDENSED

public static final byte FONT_STRETCH_SEMI_CONDENSED
Font-stretch constant indicating semi-condensed.

See Also:
Constant Field Values

FONT_STRETCH_NORMAL

public static final byte FONT_STRETCH_NORMAL
Font-stretch constant indicating normal.

See Also:
Constant Field Values

FONT_STRETCH_SEMI_EXPANDED

public static final byte FONT_STRETCH_SEMI_EXPANDED
Font-stretch constant indicating semi-expanded.

See Also:
Constant Field Values

FONT_STRETCH_EXPANDED

public static final byte FONT_STRETCH_EXPANDED
Font-stretch constant indicating expanded.

See Also:
Constant Field Values

FONT_STRETCH_EXTRA_EXPANDED

public static final byte FONT_STRETCH_EXTRA_EXPANDED
Font-stretch constant indicating extra-expanded.

See Also:
Constant Field Values

FONT_STRETCH_ULTRA_EXPANDED

public static final byte FONT_STRETCH_ULTRA_EXPANDED
Font-stretch constant indicating ultra-expanded.

See Also:
Constant Field Values

FONT_STRETCH_ANY

public static final byte FONT_STRETCH_ANY
Font-stretch constant indicating no preference.

See Also:
Constant Field Values

FONT_SELECTION_CBC

public static final byte FONT_SELECTION_CBC
font-selection-strategy constant indicating "character-by-character".

See Also:
Constant Field Values

FONT_SELECTION_AUTO

public static final byte FONT_SELECTION_AUTO
font-selection-strategy constant indicating "auto".

See Also:
Constant Field Values

FONT_COMPLEXITY_UNKNOWN

public static final byte FONT_COMPLEXITY_UNKNOWN
Font-complexity constant indicating that the complexity is not known.

See Also:
Constant Field Values

FONT_SIMPLE

public static final byte FONT_SIMPLE
Font-complexity constant indicating that the font is a simple font.

See Also:
Constant Field Values

FONT_COMPOSITE

public static final byte FONT_COMPOSITE
Font-complexity constant indicating that the font is a composite font.

See Also:
Constant Field Values

FORMAT_UNKNOWN

public static final byte FORMAT_UNKNOWN
Font-format constant indicating that the font's format is not known.

See Also:
Constant Field Values

FORMAT_TYPE1

public static final byte FORMAT_TYPE1
Font-format constant indicating that the font is a Type1 font.

See Also:
Constant Field Values

FORMAT_TRUETYPE

public static final byte FORMAT_TRUETYPE
Font-format constant indicating that the font is a TrueType font.

See Also:
Constant Field Values

FORMAT_OTF_TRUETYPE

public static final byte FORMAT_OTF_TRUETYPE
Font-format constant indicating that the font is an OpenType font with TrueType outlines.

See Also:
Constant Field Values

FORMAT_OTF_CFF

public static final byte FORMAT_OTF_CFF
Font-format constant indicating that the font is an OpenType font with Compact Font Format (CFF) data (no TrueType outlines).

See Also:
Constant Field Values

LH_ALGORITHM_DEFAULT

public static final byte LH_ALGORITHM_DEFAULT
Normal line-height computation constant indicating that the implementation is in complete control of the normal line-height computation.

See Also:
Constant Field Values

WRITING_MODE_HORIZONTAL

public static final byte WRITING_MODE_HORIZONTAL
Constant indicating the writing mode is horizontal.

See Also:
Constant Field Values

WRITING_MODE_VERTICAL

public static final byte WRITING_MODE_VERTICAL
Constant indicating the writing mode is vertical.

See Also:
Constant Field Values
Method Detail

getAscender

public int getAscender(int fontSize)
Returns the Ascender value for this font, scaled to a specific point size.

Parameters:
fontSize - The font size, in millipoints.
Returns:
The Ascender value, in millipoints.

getDescender

public int getDescender(int fontSize)
Returns the Descender value for this font, scaled to a specific point size.

Parameters:
fontSize - The font size, in millipoints.
Returns:
The Descender value, in millipoints.

getCapHeight

public int getCapHeight(int fontSize)
Returns the CapHeight value for this font, scaled to a specific point size.

Parameters:
fontSize - The font size, in millipoints.
Returns:
The CapHeight value, in millipoints.

getXHeight

public int getXHeight(int fontSize)
Returns the XHeight value for this font, scaled to a specific point size.

Parameters:
fontSize - The font size, in millipoints.
Returns:
The XHeight value, in millipoints.

width

public int width(int codePoint,
                 int fontSize)
Returns the width of a Unicode character for this font, at a specified point size.

Parameters:
codePoint - The Unicode character for which the width should be returned.
fontSize - The size, in millipoints, of the font.
Returns:
The width, in millipoints, of the glyph in this font for codePoint, or Integer.MIN_VALUE if such a glyph is not found.

width

public int width(java.lang.CharSequence chars,
                 int fontSize,
                 int letterSpacing,
                 int wordSpacing)
Calculates the width of a given String, considering letter spacing, word spacing, and kerning.

Parameters:
chars - The String whose width should be computed.
fontSize - The size, in millipoints, of the font.
letterSpacing - The size, in millipoints, of any letter-spacing.
wordSpacing - The size, in millipoints, of any word-spacing.
Returns:
The width, in millipoints, of string. Letter-spacing and kerning are added between characters in string, but are not added either before or after. (Adding letter-spacing or kerning before or after would require making assumptions about the context of string, including whether it is at the beginning or end of the line, what fonts surround it, etc.) Word-spacing is added only to space characters (0x20). Any other whitespace characters that the client applications wishes to have considered as word-spacing must first be normalized to 0x20. If there is no glyph for a character in string , the width returned will be that of the "missing glyph".

widthEstimate

public int widthEstimate(int codePoint,
                         int fontSize)
Returns the estimated width of a Unicode character for this font, at a specified point size. This method is implementation-dependent. It may attempt to estimate the size of characters such as hair spaces and em quads, which may not be available in the font, but which can be simulated in output if the size is known. Presumably, this method should be used only after width(int, int) has indicated that the font cannot return a true width.

Parameters:
codePoint - The Unicode character for which the width should be returned.
fontSize - The size, in millipoints, of the font.
Returns:
The width, in millipoints, of the estimated size of this glyph in this font for codePoint, or Integer.MIN_VALUE if the implementation cannot estimate such a width.

isEmbeddable

public boolean isEmbeddable()
Tells the client application whether this font can be embedded or not.

Returns:
True if this font can be embedded.

isSubsettable

public boolean isSubsettable()
Tells the client application whether a subset of this font can be embedded.

Returns:
True if a subset of this font can be embedded.

getAWTFont

public java.awt.Font getAWTFont(int fontSize)
If this Font has a java.awt.Font associated with it, return it.

Parameters:
fontSize - The font size, in millipoints.
Returns:
The related Font instance, if there is one, otherwise null.

usableInPostScriptOutput

public boolean usableInPostScriptOutput()
Indicates whether this font can be referenced within a PostScript file.

Returns:
True if this font can be referenced within a PostScript file.

getFamilyName

public java.lang.String getFamilyName()
Returns this font's font-family name. For example, a font named "Bitstream Charter Italic" in font-family "Bitstream Charter", with PostScript name "CharterBT-Italic", should return "Bitstream Charter".

Returns:
This font's font-family name.
See Also:
getFontName(), getPostscriptName()

getFontName

public java.lang.String getFontName()
Returns this font's name. For example, a font named "Bitstream Charter Italic" in font-family "Bitstream Charter", with PostScript name "CharterBT-Italic", should return "Bitstream Charter Italic".

Returns:
This font's name.
See Also:
getFamilyName(), getPostscriptName()

getPostscriptName

public java.lang.String getPostscriptName()
Returns the PostScript name of the font. For example, a font named "Bitstream Charter Italic" in font-family "Bitstream Charter", with PostScript name "CharterBT-Italic", should return "CharterBT-Italic".

Returns:
The PostScript name of the font.
See Also:
getFamilyName(), getFontName()

getInternalEncoding

public Encoding getInternalEncoding()
Get the font's internal Encoding scheme. Note that this may be different from the Encoding scheme actually used to encode characters by the font.

Returns:
The font's internal Encoding scheme.
See Also:
FontUse.getEncoding()

getFontComplexity

public byte getFontComplexity()
Returns a value indicating whether this font is a simple or composite font.

Returns:
One of the following: FONT_COMPLEXITY_UNKNOWN, FONT_SIMPLE, or FONT_COMPOSITE.

getFontFormat

public byte getFontFormat()
Returns a value indicating what format (e.g. Type1, TrueType) this font is.

Returns:
One of the following: FORMAT_UNKNOWN, FORMAT_TYPE1, or FORMAT_TRUETYPE.

kern

public int kern(int char1,
                int char2)
Computes the kerning needed between two glyphs in this font.

Parameters:
char1 - The Unicode code point of the first (left in a left-to-right system) character.
char2 - The Unicode code point of the second (right in left-to-right system) character.
Returns:
The distance in 1/1000ths of a text space unit of the kerning. A positive amount means that the characters should be moved farther apart, and a negative amount means that they should be moved closer together.

getItalicAngle

public float getItalicAngle()
Returns the ItalicAngle value for this font.

Returns:
The ItalicAngle value, expressed in degrees counterclockwise from vertical.

getStemV

public int getStemV()
Returns the StemV value for this font, used in a PDF Font Descriptor, as defined in the PDF Reference, Second Edition, Section 5.7.

Returns:
The StemV value, in 1/1000ths of a text space unit.

getDefaultWidth

public int getDefaultWidth()
Returns the default glyph width for this font.

Returns:
The default glyph width for this font, expressed in 1/1000ths of a text space unit.

isPDFStandardFont

public boolean isPDFStandardFont()
Indicates whether this font is one of the PDF Base-14 fonts.

Returns:
True if this font is one of the PDF Base-14 fonts.

normalLineHeightFactor

public float normalLineHeightFactor(int algorithm)

Returns a factor suitable for computing a "normal" line-height as defined in the CSS and XSL-FO standards. The line-height is the distance, including leading, between the baselines of stacked lines of text. The CSS and XSL-FO standards recommend that the "normal" value for line-height fall between 1.0 and 1.2. (see Section 7.15.4 of XSL-FO 1.0) This method attempts to find a suitable value based on the characteristics of the font itself.

Design Note 1: This method returns a float factor instead of a computation of the actual line-height to facilitate the handling of inheritance where that is required. For example, for CSS and XSL-FO, the factor is what is inherited instead of the computed line-height.

Parameters:
algorithm - The specifier of an algorithm that should be used to compute the factor. Valid values include LH_ALGORITHM_DEFAULT, which puts the implementation in complete control of the computation. Other algorithms may be added in the future.
Returns:
The factor to be applied to the font-size to compute the "normal" line-height. For example, if the font-size is 12 points, and this method returns 1.2, the computed "normal" line-height is 14.4 points.

baselineOffset

public int baselineOffset(int writingMode,
                          int baselineType,
                          int fontSize)
Returns the location of the specified baseline. For fonts with explicit baseline data, returns that value. For other fonts, estimates the value.

Parameters:
writingMode - Constant indicating the direction in which the script is being written. Valid values are Constants.AXIS_HORIZONTAL and Constants.AXIS_VERTICAL.
baselineType - Constant indicating which baseline is sought. Valid values are Constants.BASELINE_ALPHABETIC, Constants.BASELINE_IDEOGRAPHIC, Constants.BASELINE_HANGING, Constants.BASELINE_MATHEMATICAL, Constants.BASELINE_CENTRAL, Constants.BASELINE_MIDDLE, Constants.BASELINE_TEXT_BEFORE_EDGE, and Constants.BASELINE_TEXT_AFTER_EDGE.
fontSize - The size, in millipoints, at which the font is scaled.
Returns:
The distance, in millipoints, from the leading edge of the em-box, at which the specified baseline is located.

baseline

public int baseline(java.lang.String script)
Determines which baseline should be used by this font for a specified script.

Parameters:
script - The ISO 15924 script name for which a baseline is sought.
Returns:
One of Constants.BASELINE_ALPHABETIC, Constants.BASELINE_IDEOGRAPHIC, Constants.BASELINE_HANGING, Constants.BASELINE_MATHEMATICAL, Constants.BASELINE_CENTRAL, Constants.BASELINE_MIDDLE, Constants.BASELINE_TEXT_BEFORE_EDGE, and Constants.BASELINE_TEXT_AFTER_EDGE.

underlineSize

public int underlineSize(int fontSize)
The recommended thickness, in millipoints, of the underline stroke for this font.

Parameters:
fontSize - The font size for which the underline thickness should be computed.
Returns:
The underline thickness, in millipoints.

underlinePosition

public int underlinePosition(int fontSize)
The recommended position of the top of the underline stroke, relative to the baseline, in millipoints. Positive values represent distances above the baseline, while negative values represent distances below the baseline.

Parameters:
fontSize - The font size for which the underline position should be computed.
Returns:
The underline position, in millipoints.

overlineSize

public int overlineSize(int fontSize)
The recommended thickness, in millipoints, of the overline stroke for this font.

Parameters:
fontSize - The font size for which the overline thickness should be computed.
Returns:
The overline thickness, in millipoints.

overlinePosition

public int overlinePosition(int fontSize)
The recommended position of the bottom of the overline stroke, relative to the baseline, in millipoints. Positive values represent distances above the baseline, while negative values represent distances below the baseline.

Parameters:
fontSize - The font size for which the overline position should be computed.
Returns:
The overline position, in millipoints.

strikeoutSize

public int strikeoutSize(int fontSize)
The recommended thickness, in millipoints, of the strikeout stroke for this font.

Parameters:
fontSize - The font size for which the strikeout thickness should be computed.
Returns:
The strikout thickness, in millipoints.

strikeoutPosition

public int strikeoutPosition(int fontSize)
The recommended position of the top of the strikeout stroke, relative to the baseline, in millipoints. Positive values represent distances above the baseline, while negative values represent distances below the baseline.

Parameters:
fontSize - The font size for which the strikeout position should be computed.
Returns:
The strikeout position, in millipoints.

SourceForge.net Logo
aXSL API 0.1

This documentation was created September 6 2006 by The aXSL Group and may be freely copied. See license for details.