<p>Unfortunately there is only the function <a href="http://poi.apache.org/apidocs/org/apache/poi/ss/usermodel/Sheet.html#setColumnWidth%28int,%20int%29">setColumnWidth(int columnIndex,<br>
int width)</a> from <code>class Sheet</code>; in which width is a number of characters in <em>the standard font (first font in the workbook)</em> if your fonts are changing you cannot use it.<br>
There is explained how to calculate the width in function of a font size. The formula is:</p>
<pre><code class="lang-auto">width = Truncate([{NumOfVisibleChar} * {MaxDigitWidth} + {5PixelPadding}] / {MaxDigitWidth}*256) / 256
</code></pre>
<p>You can always use <a href="http://poi.apache.org/apidocs/org/apache/poi/ss/usermodel/Sheet.html#autoSizeColumn(int,%20boolean)"><code>autoSizeColumn(int column, boolean useMergedCells)</code></a> after inputting the data in your <code>Sheet</code>.</p>