title: Setting Some part of cell content to bold/italic using apache-poi 4.0.1 library
body: <p>I want to set the content of cell value with a combination of bold and italic. 
  like "This is <strong><em>Sample</em></strong> <em>content</em>."</p>
  
  <p>However, this is not working using XSSFRichTextString.</p>
  
  <p>I am using apache poi library version 4.0.1. I have tried making my content bold and italic combination using XSSFRichTextString. I have appended the string using by passing two arguments in method cell1Value.append("sample ", fontBold);i.e. String and Font. </p>
  
  <pre><code>    XSSFRichTextString cell1Value= new XSSFRichTextString("This is ");
      XSSFFont fontBold= wb.createFont();
      fontBold.setBold(true); //set bold
      fontBold.setUnderline(HSSFFont.U_SINGLE);
  
  
      XSSFFont fontItalic= wb.createFont();
      fontItalic.setItalic(true); //set italic
  
      cell1Value.append("sample ",fontBold);
      cell1Value.append("content", fontItalic);
  
      System.err.println(cell1Value.getCTRst());
  
      Cell cell1 = row.createCell(0);
      cell1.setCellValue(cell1Value);
  </code></pre>
  
  <p>I am expecting "sample" to be bold and "content" to be italic. However, the underline is working fine and my "sample" word is underlined properly. Please suggest what I am missing?</p>