code: public void writeBegin(final OutputStream result) throws IOException {
          if(this.fontNumber != Font.UNDEFINED) {
              result.write(RtfFontList.FONT_NUMBER);
              result.write(intToByteArray(fontNumber));
          }
          if(this.fontSize != Font.UNDEFINED) {
              result.write(FONT_SIZE);
              result.write(intToByteArray(fontSize * 2));
          }
          if(this.fontStyle != UNDEFINED) {
              if((fontStyle & STYLE_BOLD) == STYLE_BOLD) {
                  result.write(FONT_BOLD);
              }
              if((fontStyle & STYLE_ITALIC) == STYLE_ITALIC) {
                  result.write(FONT_ITALIC);
              }
              if((fontStyle & STYLE_UNDERLINE) == STYLE_UNDERLINE) {
                  result.write(FONT_UNDERLINE);
              }
              if((fontStyle & STYLE_STRIKETHROUGH) == STYLE_STRIKETHROUGH) {
                  result.write(FONT_STRIKETHROUGH);
              }
              if((fontStyle & STYLE_HIDDEN) == STYLE_HIDDEN) {
                  result.write(FONT_HIDDEN);
              }
              if((fontStyle & STYLE_DOUBLE_STRIKETHROUGH) == STYLE_DOUBLE_STRIKETHROUGH) {
                  result.write(FONT_DOUBLE_STRIKETHROUGH);
                  result.write(intToByteArray(1));
              }
              if((fontStyle & STYLE_SHADOW) == STYLE_SHADOW) {
                  result.write(FONT_SHADOW);
              }
              if((fontStyle & STYLE_OUTLINE) == STYLE_OUTLINE) {
                  result.write(FONT_OUTLINE);
              }
              if((fontStyle & STYLE_EMBOSSED) == STYLE_EMBOSSED) {
                  result.write(FONT_EMBOSSED);
              }
              if((fontStyle & STYLE_ENGRAVED) == STYLE_ENGRAVED) {
                  result.write(FONT_ENGRAVED);
              }
          }
          if(color != null) {
              color.writeBegin(result);
          }
      }
docs: Writes the font beginning
  
  @param result The <code>OutputStream</code> to write to.
  @throws IOException On i/o errors.