org.apache.fop.render.afp.modca

Class 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(byte fontReference, AFPFont font, int size, int orientation)
Add a font definition on the the map coded font object.
void
writeDataStream(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

writeDataStream, writeObjectList

Constructor Details

MapCodedFont

public MapCodedFont()
Constructor for the MapCodedFont

Method Details

addFont

public void addFont(byte 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

writeDataStream

public void writeDataStream(OutputStream os)
            throws IOException
Accessor method to write the AFP datastream for the Map Coded Font
Overrides:
writeDataStream in interface AbstractAFPObject
Parameters:
os - The stream to write to

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