public void writeEnd ( final OutputStream result ) throws IOException { if ( this . fontStyle != UNDEFINED ) { if ( ( fontStyle & STYLE_BOLD ) == STYLE_BOLD ) { result . write ( FONT_BOLD ) ; result . write ( intToByteArray ( 0 ) ) ; } if ( ( fontStyle & STYLE_ITALIC ) == STYLE_ITALIC ) { result . write ( FONT_ITALIC ) ; result . write ( intToByteArray ( 0 ) ) ; } if ( ( fontStyle & STYLE_UNDERLINE ) == STYLE_UNDERLINE ) { result . write ( FONT_UNDERLINE ) ; result . write ( intToByteArray ( 0 ) ) ; } if ( ( fontStyle & STYLE_STRIKETHROUGH ) == STYLE_STRIKETHROUGH ) { result . write ( FONT_STRIKETHROUGH ) ; result . write ( intToByteArray ( 0 ) ) ; } if ( ( fontStyle & STYLE_HIDDEN ) == STYLE_HIDDEN ) { result . write ( FONT_HIDDEN ) ; result . write ( intToByteArray ( 0 ) ) ; } if ( ( fontStyle & STYLE_DOUBLE_STRIKETHROUGH ) == STYLE_DOUBLE_STRIKETHROUGH ) { result . write ( FONT_DOUBLE_STRIKETHROUGH ) ; result . write ( intToByteArray ( 0 ) ) ; } if ( ( fontStyle & STYLE_SHADOW ) == STYLE_SHADOW ) { result . write ( FONT_SHADOW ) ; result . write ( intToByteArray ( 0 ) ) ; } if ( ( fontStyle & STYLE_OUTLINE ) == STYLE_OUTLINE ) { result . write ( FONT_OUTLINE ) ; result . write ( intToByteArray ( 0 ) ) ; } if ( ( fontStyle & STYLE_EMBOSSED ) == STYLE_EMBOSSED ) { result . write ( FONT_EMBOSSED ) ; result . write ( intToByteArray ( 0 ) ) ; } if ( ( fontStyle & STYLE_ENGRAVED ) == STYLE_ENGRAVED ) { result . write ( FONT_ENGRAVED ) ; result . write ( intToByteArray ( 0 ) ) ; } } }
Write the font end