title: How to set font in decimal number using HSSFFont
body: <p>I want to set text font to 7.5 to a particular text in excel sheet. I am using below code to prepare the Font.</p>
  
  <pre><code>HSSFCellStyle txtStyle = (HSSFCellStyle)workbook.createCellStyle();
  HSSFFont txtFont = (HSSFFont)workbook.createFont();
  txtFont.setFontName("Arial");
  txtFont.setFontHeightInPoints((short)7.5);
  txtStyle.setFont(txtFont);
  </code></pre>
  
  <p>But it always takes font as 7 because of short type casting and hence targeted text in excel sheet is taking font 7 and not 7.5. I also tried method 'setFontHeight' but that also takes short as parameter. So is there any way by which I could set text font to decimal number?</p>