org.apache.fop.render.afp

Class AFPFontAttributes


public class AFPFontAttributes
extends java.lang.Object

This class encapsulates the font atributes that need to be included in the AFP data stream. This class does not assist in converting the font attributes to AFP code pages and character set values.

Constructor Summary

AFPFontAttributes(String fontKey, AFPFont font, int pointSize)
Constructor for the AFPFontAttributes

Method Summary

AFPFont
getFont()
String
getFontKey()
byte
getFontReference()
int
getPointSize()
void
setFontReference(int fontReference)
Sets the FontReference attribute

Constructor Details

AFPFontAttributes

public AFPFontAttributes(String fontKey,
                         AFPFont font,
                         int pointSize)
Constructor for the AFPFontAttributes
Parameters:
fontKey - the font key
font - the font
pointSize - the point size

Method Details

getFont

public AFPFont getFont()
Returns:
the font

getFontKey

public String getFontKey()
Returns:
the FontKey attribute

getFontReference

public byte getFontReference()
Returns:
the FontReference attribute

getPointSize

public int getPointSize()
Returns:
the point size attribute

setFontReference

public void setFontReference(int fontReference)
Sets the FontReference attribute
Parameters:
fontReference - the FontReference to set

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