title: How to read font size and font name in .docx in Apache POI(java)
body: <p>Here is my code.</p>
  
  <pre><code>XWPFRun run = runlist.get(0);
  double fontsize = (double)(run.getFontSize());
  String fontfamily = (String)run.getFontFamily();
  </code></pre>
  
  <p>When it read the .docx file it will sometimes return -1 in font size and null in font family.</p>
  
  <p>I know that it's because they are default value but I don't want -1 and null I just want the name of that default value.</p>
  
  <p>How can I read it?</p>