org.apache.fop.fo.properties

Class 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

String
getFirstFontFamily()
String[]
getFontFamily()
Font
getFontState(FontInfo fontInfo, PercentBaseContext context)
Create and return a Font object based on the properties.

Field Details

fontSelectionStrategy

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

fontSize

public Length fontSize
The "font-size" property.

fontSizeAdjust

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

fontStretch

public int fontStretch
The "font-stretch" 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 Details

CommonFont

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

Method Details

getFirstFontFamily

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

getFontFamily

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

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