org.apache.batik.bridge
Class SVGFontFace

java.lang.Object
  |
  +--org.apache.batik.bridge.SVGFontFace

public class SVGFontFace
extends java.lang.Object

This class represents a <font-face> element.


Field Summary
protected  float ascent
           
protected  float descent
           
protected  java.lang.String familyName
           
protected  java.lang.String fontStretch
           
protected  java.lang.String fontStyle
           
protected  java.lang.String fontVariant
           
protected  java.lang.String fontWeight
           
protected  float overlinePosition
           
protected  float overlineThickness
           
protected  java.lang.String panose1
           
protected  float slope
           
protected  float strikethroughPosition
           
protected  float strikethroughThickness
           
protected  float underlinePosition
           
protected  float underlineThickness
           
protected  float unitsPerEm
           
 
Constructor Summary
SVGFontFace(java.lang.String familyName, float unitsPerEm, java.lang.String fontWeight, java.lang.String fontStyle, java.lang.String fontVariant, java.lang.String fontStretch, float slope, java.lang.String panose1, float ascent, float descent, float strikethroughPosition, float strikethroughThickness, float underlinePosition, float underlineThickness, float overlinePosition, float overlineThickness)
          Constructes an SVGFontFace with the specfied font-face attributes.
 
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.
 java.lang.String getFamilyName()
          Returns the family name of this font, it may contain more than one.
 java.lang.String getFontStyle()
          Returns the font-style.
 java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

familyName

protected java.lang.String familyName

unitsPerEm

protected float unitsPerEm

fontWeight

protected java.lang.String fontWeight

fontStyle

protected java.lang.String fontStyle

fontVariant

protected java.lang.String fontVariant

fontStretch

protected java.lang.String fontStretch

slope

protected float slope

panose1

protected java.lang.String panose1

ascent

protected float ascent

descent

protected float descent

strikethroughPosition

protected float strikethroughPosition

strikethroughThickness

protected float strikethroughThickness

underlinePosition

protected float underlinePosition

underlineThickness

protected float underlineThickness

overlinePosition

protected float overlinePosition

overlineThickness

protected float overlineThickness
Constructor Detail

SVGFontFace

public SVGFontFace(java.lang.String familyName,
                   float unitsPerEm,
                   java.lang.String fontWeight,
                   java.lang.String fontStyle,
                   java.lang.String fontVariant,
                   java.lang.String fontStretch,
                   float slope,
                   java.lang.String panose1,
                   float ascent,
                   float descent,
                   float strikethroughPosition,
                   float strikethroughThickness,
                   float underlinePosition,
                   float underlineThickness,
                   float overlinePosition,
                   float overlineThickness)
Constructes an SVGFontFace with the specfied font-face attributes.
Method Detail

getFamilyName

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

getFontWeight

public java.lang.String getFontWeight()
Returns the font-weight.

getFontStyle

public java.lang.String getFontStyle()
Returns the font-style.

getUnitsPerEm

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

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.

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.

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.


Copyright © 2002 Apache Software Foundation. All Rights Reserved.