fop 0.95

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

java.lang.Object
  extended by org.apache.fop.render.afp.modca.AbstractAFPObject
      extended by org.apache.fop.render.afp.modca.MapCodedFont

public class MapCodedFont
extends AbstractAFPObject

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.

Author:
Pete Townsend

Field Summary
 
Fields inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject
log
 
Constructor Summary
MapCodedFont()
          Constructor for the MapCodedFont
 
Method Summary
 void addFont(int fontReference, AFPFont font, int size, int orientation)
          Add a font definition on the the map coded font object.
 void writeDataStream(java.io.OutputStream os)
          Accessor method to write the AFP datastream for the Map Coded Font
 
Methods inherited from class org.apache.fop.render.afp.modca.AbstractAFPObject
writeObjectList
 
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

writeDataStream

public void writeDataStream(java.io.OutputStream os)
                     throws java.io.IOException
Accessor method to write the AFP datastream for the Map Coded Font

Specified by:
writeDataStream in class AbstractAFPObject
Parameters:
os - The stream to write to
Throws:
java.io.IOException - an I/O exception of some sort has occurred

addFont

public void addFont(int fontReference,
                    AFPFont font,
                    int size,
                    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
font - the font
size - the size of the font
orientation - the orientation of the font
Throws:
MaximumSizeExceededException - if the maximum number of fonts have been exceeded

fop 0.95

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