org.apache.fop.render.afp.modca
Class MapCodedFont
java.lang.Object
org.apache.fop.render.afp.modca.AbstractAFPObject
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapCodedFont
public MapCodedFont()
- Constructor for the MapCodedFont
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 identifierfont
- the fontsize
- the size of the fontorientation
- the orientation of the font
- Throws:
MaximumSizeExceededException
- if the maximum number of fonts have been exceeded
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.