org.apache.fop.render.rtf.rtflib.rtfdoc

Class RtfFontManager


public final class RtfFontManager
extends java.lang.Object

RTF font table
Author:
Andreas Putz a.putz@skynamics.com

Method Summary

int
getFontNumber(String family)
Gets the number of font in the font table
static RtfFontManager
getInstance()
Singelton.
void
writeFonts(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header)
Writes the font table in the header.

Method Details

getFontNumber

public int getFontNumber(String family)
Gets the number of font in the font table
Parameters:
family - Font family name ('Helvetica')
Returns:
The number of the font in the table

getInstance

public static RtfFontManager getInstance()
Singelton.
Returns:
The instance of RtfFontManager

writeFonts

public void writeFonts(org.apache.fop.render.rtf.rtflib.rtfdoc.RtfHeader header)
            throws IOException
Writes the font table in the header.
Parameters:
header - The header container to write in

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