title: How to read font color of each text in cell in apache poi 3.9
body: <p>[Text in 1 Cell]<br>
  ABC (Pink Color)<br>
  DEF (Black Color)<br>
  GHI (Red Color)<br></p>
  
  <p>I have to check font color of text in cell like above.
  (I'm sorry that I can't upload image)
  Color of first row is pink. 
  Color of next rows are black and red.</p>
  
  <p>As you see, I can't use getCellStyle() method because the cell has 3 font attribute.</p>
  
  <p>I typed source code like below.</p>
  
  <p><code>XSSFCell cell = row.getCell(0);</code></p>
  
  <p><code>XSSFRichTextString value = cell.getRichStringCellValue();</code></p>
  
  <pre><code>String[] info = value.getString().split("\n");
  </code></pre>
  
  <p><code>for(int i = 0; i &lt; info.length; i++) {</code></p>
  
  <p><code>int index = value.getString().indexOf(info);</code><br>
  <code>System.out.println(value.getFontAtIndex(index).getColor());</code>   </p>
  
  <p><code>}</code></p>
  
  <p>But, I didn't get correct result.
  I want to know how I can get font information for each text.</p>
  
  <p>Please inform me your great advice.
  Thank a lots.
  Have a good day!</p>