org.apache.fop.render.afp.modca
Class MapCodedFont

java.lang.Object
  extended byorg.apache.fop.render.afp.modca.AFPObject
      extended byorg.apache.fop.render.afp.modca.MapCodedFont

public class MapCodedFont
extends AFPObject

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

MapCodedFont

public MapCodedFont()
Constructor for the MapCodedFont

Method Detail

getDataStream

public byte[] getDataStream()
Accessor method to obtain the byte array AFP datastream for the map coded font.

Specified by:
getDataStream in class AFPObject
Returns:
byte[] data stream

addFont

public void addFont(byte fontReference,
                    java.lang.String font,
                    int size)
             throws MaximumSizeExceededException
Add a font definition on the the map coded font object.

Parameters:
fontReference - The font number used as the resource identifier.
font - the font family name
size - the point size of the font
Throws:
MaximumSizeExceededException

addFont

public void addFont(byte fontReference,
                    java.lang.String name,
                    int size,
                    java.lang.String weight,
                    java.lang.String style,
                    int orientation)
             throws MaximumSizeExceededException
Add a font definition on the the map coded font object.

Parameters:
fontReference - the font number used as the resource identifier
name - the name of the font family
weight - 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
Throws:
MaximumSizeExceededException