fop 0.93

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
 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.
 void overrideFontFamily(java.lang.String value)
          Overrides the font-family.
 
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.
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

overrideFontFamily

public void overrideFontFamily(java.lang.String value)
Overrides the font-family.
Parameters:
value - the new font-family

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

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