Package org.apache.fop.afp.fonts
Class AFPFontAttributes
- java.lang.Object
-
- org.apache.fop.afp.fonts.AFPFontAttributes
-
public class AFPFontAttributes extends java.lang.Object
This class encapsulates the font attributes 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
Constructors Constructor Description AFPFontAttributes(java.lang.String fontKey, AFPFont font, int pointSize)
Constructor for the AFPFontAttributes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AFPFont
getFont()
Return the fontjava.lang.String
getFontKey()
Return the FontKey attributeint
getFontReference()
Return the FontReference attributeint
getPointSize()
Return the point size attributevoid
setFontReference(int fontReference)
Sets the FontReference attributejava.lang.String
toString()
-
-
-
Constructor Detail
-
AFPFontAttributes
public AFPFontAttributes(java.lang.String fontKey, AFPFont font, int pointSize)
Constructor for the AFPFontAttributes- Parameters:
fontKey
- the font keyfont
- the fontpointSize
- the point size
-
-
Method Detail
-
getFont
public AFPFont getFont()
Return the font- Returns:
- the font
-
getFontKey
public java.lang.String getFontKey()
Return the FontKey attribute- Returns:
- the FontKey attribute
-
getPointSize
public int getPointSize()
Return the point size attribute- Returns:
- the point size attribute
-
getFontReference
public int getFontReference()
Return the FontReference attribute- Returns:
- the FontReference attribute
-
setFontReference
public void setFontReference(int fontReference)
Sets the FontReference attribute- Parameters:
fontReference
- the FontReference to set
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-