org.apache.fop.render.afp.modca
Class MapCodedFont
public class MapCodedFont
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.
void | addFont(int 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
|
MapCodedFont
public MapCodedFont()
Constructor for the MapCodedFont
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.
fontReference
- the font number used as the resource identifierfont
- the fontsize
- the size of the fontorientation
- 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
- writeDataStream in interface AbstractAFPObject
os
- The stream to write to
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.