code: private void showText2(String text) {
          if (state.fontDetails == null)
              throw new NullPointerException("Font and size must be set before writing any text");
          byte b[] = state.fontDetails.convertToBytes(text);
          escapeString(b, content);
      }
docs: A helper to insert into the content stream the <CODE>text</CODE>
  converted to bytes according to the font's encoding.
  
  @param text the text to write