public void writeDefinition(final OutputStream result) throws IOException 
    {
        result.write(DEFAULT_FONT);
        result.write(intToByteArray(0));
        result.write(OPEN_GROUP);
        result.write(FONT_TABLE);
        for(int i = 0; i < fontList.size(); i++) {
            result.write(OPEN_GROUP);
            result.write(FONT_NUMBER);
            result.write(intToByteArray(i));
            RtfFont rf = (RtfFont) fontList.get(i);
            rf.writeDefinition(result);
            result.write(COMMA_DELIMITER);
            result.write(CLOSE_GROUP);
        }
        result.write(CLOSE_GROUP);
        this.document.outputDebugLinebreak(result);    	
    }
public void writeDefinition ( final OutputStream result ) throws IOException { result . write ( DEFAULT_FONT ) ; result . write ( intToByteArray ( 0 ) ) ; result . write ( OPEN_GROUP ) ; result . write ( FONT_TABLE ) ; for ( int i = 0 ; i < fontList . size ( ) ; i ++ ) { result . write ( OPEN_GROUP ) ; result . write ( FONT_NUMBER ) ; result . write ( intToByteArray ( i ) ) ; RtfFont rf = ( RtfFont ) fontList . get ( i ) ; rf . writeDefinition ( result ) ; result . write ( COMMA_DELIMITER ) ; result . write ( CLOSE_GROUP ) ; } result . write ( CLOSE_GROUP ) ; this . document . outputDebugLinebreak ( result ) ; }
Writes the definition of the font list