org.apache.batik.gvt.font

Class GVTFontFace

public class GVTFontFace extends Object implements SVGConstants

One line Class Desc Complete Class Desc
Field Summary
protected floatascent
protected floatdescent
protected StringfamilyName
protected StringfontStretch
protected StringfontStyle
protected StringfontVariant
protected StringfontWeight
protected floatoverlinePosition
protected floatoverlineThickness
protected Stringpanose1
protected floatslope
protected floatstrikethroughPosition
protected floatstrikethroughThickness
protected floatunderlinePosition
protected floatunderlineThickness
protected floatunitsPerEm
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
floatgetAscent()
Returns the maximum unaccented height of the font within the font coordinate system.
floatgetDescent()
Returns the maximum unaccented depth of the font within the font coordinate system.
StringgetFamilyName()
Returns the family name of this font, it may contain more than one.
StringgetFontStyle()
Returns the font-style.
StringgetFontWeight()
Returns the font-weight.
floatgetOverlinePosition()
Returns the position of the overline decoration.
floatgetOverlineThickness()
Returns the stroke thickness to use when drawing a overline.
floatgetStrikethroughPosition()
Returns the position of the strikethrough decoration.
floatgetStrikethroughThickness()
Returns the stroke thickness to use when drawing a strikethrough.
floatgetUnderlinePosition()
Returns the position of the underline decoration.
floatgetUnderlineThickness()
Returns the stroke thickness to use when drawing a underline.
floatgetUnitsPerEm()
The number of coordinate units on the em square for this font.
booleanhasFamilyName(String family)

Field Detail

ascent

protected float ascent

descent

protected float descent

familyName

protected String familyName

fontStretch

protected String fontStretch

fontStyle

protected String fontStyle

fontVariant

protected String fontVariant

fontWeight

protected String fontWeight

overlinePosition

protected float overlinePosition

overlineThickness

protected float overlineThickness

panose1

protected String panose1

slope

protected float slope

strikethroughPosition

protected float strikethroughPosition

strikethroughThickness

protected float strikethroughThickness

underlinePosition

protected float underlinePosition

underlineThickness

protected float underlineThickness

unitsPerEm

protected float unitsPerEm

Constructor Detail

GVTFontFace

public 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

public GVTFontFace(String familyName)
Constructs an SVGFontFace with default values for all the font-face attributes other than familyName

Method Detail

getAscent

public float getAscent()
Returns the maximum unaccented height of the font within the font coordinate system.

getDescent

public float getDescent()
Returns the maximum unaccented depth of the font within the font coordinate system.

getFamilyName

public String getFamilyName()
Returns the family name of this font, it may contain more than one.

getFontStyle

public String getFontStyle()
Returns the font-style.

getFontWeight

public String getFontWeight()
Returns the font-weight.

getOverlinePosition

public float getOverlinePosition()
Returns the position of the overline decoration.

getOverlineThickness

public float getOverlineThickness()
Returns the stroke thickness to use when drawing a overline.

getStrikethroughPosition

public float getStrikethroughPosition()
Returns the position of the strikethrough decoration.

getStrikethroughThickness

public float getStrikethroughThickness()
Returns the stroke thickness to use when drawing a strikethrough.

getUnderlinePosition

public float getUnderlinePosition()
Returns the position of the underline decoration.

getUnderlineThickness

public float getUnderlineThickness()
Returns the stroke thickness to use when drawing a underline.

getUnitsPerEm

public float getUnitsPerEm()
The number of coordinate units on the em square for this font.

hasFamilyName

public boolean hasFamilyName(String family)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.