|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.afp.modca.AFPObject
org.apache.fop.render.afp.modca.MapCodedFont
The Map Coded Font structured field maps a unique coded font resource local ID, which may be embedded one or more times within an object's data and descriptor, to the identifier of a coded font resource object. Additionally, the Map Coded Font structured field specifies a set of resource attributes for the coded font.
Field Summary |
Fields inherited from class org.apache.fop.render.afp.modca.AFPObject |
LOGGER |
Constructor Summary | |
MapCodedFont()
Constructor for the MapCodedFont |
Method Summary | |
void |
addFont(byte fontReference,
java.lang.String font,
int size)
Add a font definition on the the map coded font object. |
void |
addFont(byte fontReference,
java.lang.String name,
int size,
java.lang.String weight,
java.lang.String style,
int orientation)
Add a font definition on the the map coded font object. |
byte[] |
getDataStream()
Accessor method to obtain the byte array AFP datastream for the map coded font. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MapCodedFont()
Method Detail |
public byte[] getDataStream()
getDataStream
in class AFPObject
public void addFont(byte fontReference, java.lang.String font, int size) throws MaximumSizeExceededException
fontReference
- The font number used as the resource identifier.font
- the font family namesize
- the point size of the font
MaximumSizeExceededException
public void addFont(byte fontReference, java.lang.String name, int size, java.lang.String weight, java.lang.String style, int orientation) throws MaximumSizeExceededException
fontReference
- the font number used as the resource identifiername
- the name of the font familyweight
- the weight of the font (e.g. normal, bold)style
- the style of the font (e.g. normal, italics)orientation
- the orientation of the font
MaximumSizeExceededException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |