public class MapCodedFont extends AbstractStructuredObject
AbstractAFPObject.Category, AbstractAFPObject.Type
log, SF_CLASS, SF_HEADER
Constructor and Description |
---|
MapCodedFont()
Main constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addFont(int fontReference,
AFPFont font,
int size,
int orientation)
Add a font definition on the the map coded font object.
|
void |
writeToStream(java.io.OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
writeContent, writeEnd, writeStart
copyChunks, copySF, copySF, truncate, writeChunksToStream, writeObjects
public void writeToStream(java.io.OutputStream os) throws java.io.IOException
writeToStream
in interface Streamable
writeToStream
in class AbstractStructuredObject
os
- the outputsteam streamjava.io.IOException
- an I/O exception of some sort has occurred.public void addFont(int fontReference, AFPFont font, int size, int orientation) throws MaximumSizeExceededException
fontReference
- the font number used as the resource identifierfont
- the fontsize
- the size of the fontorientation
- the orientation of the fontMaximumSizeExceededException
- if the maximum number of fonts have been exceededCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.