fop 0.94

org.apache.fop.fo.properties
Class CommonFont

java.lang.Object
  extended by org.apache.fop.fo.properties.CommonFont

public class CommonFont
extends java.lang.Object

Collection of properties used in


Field Summary
 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
 java.lang.String getFirstFontFamily()
           
 java.lang.String[] getFontFamily()
           
 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

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.
Throws:
PropertyException
Method Detail

getFirstFontFamily

public java.lang.String getFirstFontFamily()
Returns:
the first font-family name in the list

getFontFamily

public java.lang.String[] getFontFamily()
Returns:
the font-family names

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.94

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