Package org.apache.fop.afp.fonts
Class AFPFontAttributes
java.lang.Object
org.apache.fop.afp.fonts.AFPFontAttributes
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
ConstructorDescriptionAFPFontAttributes
(String fontKey, AFPFont font, int pointSize) Constructor for the AFPFontAttributes -
Method Summary
Modifier and TypeMethodDescriptiongetFont()
Return the fontReturn the FontKey attributeint
Return the FontReference attributeint
Return the point size attributevoid
setFontReference
(int fontReference) Sets the FontReference attributetoString()
-
Constructor Details
-
AFPFontAttributes
Constructor for the AFPFontAttributes- Parameters:
fontKey
- the font keyfont
- the fontpointSize
- the point size
-
-
Method Details
-
getFont
Return the font- Returns:
- the font
-
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
-