fop 0.90alpha1

org.apache.fop.fo.properties
Class CommonFont

java.lang.Object
  |
  +--org.apache.fop.fo.properties.CommonFont

public class CommonFont
extends java.lang.Object

Collection of properties used in


Field Summary
 java.lang.String fontFamily
          The "font-family" property.
 int fontSelectionStrategy
          The "font-selection-strategy" property.
 Length fontSize
          The "font-size" property.
 Numeric fontSizeAdjust
          The "font-size-adjust" property.
 int fontStretch
          The "font-stretch" property.
 int fontStyle
          The "font-style" property.
 int fontVariant
          The "font-variant" property.
 int fontWeight
          The "font-weight" property.
 
Constructor Summary
CommonFont(PropertyList pList)
          Create a CommonFont object.
 
Method Summary
 Font getFontState(FontInfo fontInfo, PercentBaseContext context)
          Create and return a Font object based on the properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fontFamily

public java.lang.String fontFamily
The "font-family" property.

fontSelectionStrategy

public int fontSelectionStrategy
The "font-selection-strategy" property.

fontSize

public Length fontSize
The "font-size" property.

fontStretch

public int fontStretch
The "font-stretch" property.

fontSizeAdjust

public Numeric fontSizeAdjust
The "font-size-adjust" property.

fontStyle

public int fontStyle
The "font-style" property.

fontVariant

public int fontVariant
The "font-variant" property.

fontWeight

public int fontWeight
The "font-weight" property.
Constructor Detail

CommonFont

public CommonFont(PropertyList pList)
           throws PropertyException
Create a CommonFont object.
Parameters:
pList - The PropertyList to get properties from.
Method Detail

getFontState

public Font getFontState(FontInfo fontInfo,
                         PercentBaseContext context)
Create and return a Font object based on the properties.
Parameters:
fontInfo -  
Returns:
a Font object.

fop 0.90alpha1

Copyright 1999-2005 The Apache Software Foundation. All Rights Reserved.