org.apache.batik.gvt.font
public class GVTFontFace extends Object implements SVGConstants
Field Summary | |
---|---|
protected float | ascent |
protected float | descent |
protected String | familyName |
protected String | fontStretch |
protected String | fontStyle |
protected String | fontVariant |
protected String | fontWeight |
protected float | overlinePosition |
protected float | overlineThickness |
protected String | panose1 |
protected float | slope |
protected float | strikethroughPosition |
protected float | strikethroughThickness |
protected float | underlinePosition |
protected float | underlineThickness |
protected float | unitsPerEm |
Constructor Summary | |
---|---|
GVTFontFace(String familyName, float unitsPerEm, String fontWeight, String fontStyle, String fontVariant, String fontStretch, float slope, String panose1, float ascent, float descent, float strikethroughPosition, float strikethroughThickness, float underlinePosition, float underlineThickness, float overlinePosition, float overlineThickness)
Constructes an GVTFontFace with the specfied font-face attributes. | |
GVTFontFace(String familyName)
Constructs an SVGFontFace with default values for all the
font-face attributes other than familyName |
Method Summary | |
---|---|
float | getAscent()
Returns the maximum unaccented height of the font within the font
coordinate system. |
float | getDescent()
Returns the maximum unaccented depth of the font within the font
coordinate system. |
String | getFamilyName()
Returns the family name of this font, it may contain more than one. |
String | getFontStyle()
Returns the font-style. |
String | getFontWeight()
Returns the font-weight. |
float | getOverlinePosition()
Returns the position of the overline decoration. |
float | getOverlineThickness()
Returns the stroke thickness to use when drawing a overline. |
float | getStrikethroughPosition()
Returns the position of the strikethrough decoration. |
float | getStrikethroughThickness()
Returns the stroke thickness to use when drawing a strikethrough. |
float | getUnderlinePosition()
Returns the position of the underline decoration. |
float | getUnderlineThickness()
Returns the stroke thickness to use when drawing a underline. |
float | getUnitsPerEm()
The number of coordinate units on the em square for this font. |
boolean | hasFamilyName(String family) |