I'd wrote a simple code to check available fonts in my server. I found that
my server only have few type of fonts.

<body>
<%...@page import="java.awt.GraphicsEnvironment;" %>
<% 
        
     GraphicsEnvironment ge =
GraphicsEnvironment.getLocalGraphicsEnvironment();
     String[] names = ge.getAvailableFontFamilyNames();
     for ( int i=0; i<names.length; i++ )
     {
%>
       <p><%=names[i] %></p>
<%
     }
      
%>
</body>

Output of the above coding:

Dialog
DialogInput
Liberation Mono
Liberation Sans
Liberation Serif
Monospaced
SansSerif
Serif


David Fisher wrote:
> 
> Autosizing requires font information. Check to assure that the fonts
> installed on centOS / Java match those on your WIndows box. You'll likely
> find the CentOS box is missing fonts.
> 
> Regards,
> Dave
> 
> On May 28, 2010, at 11:52 PM, calintz wrote:
> 
>> 
>> Hi all,
>> 
>> I'm currently using poi-3.6 to generate excel file. It is working well in
>> my
>> development environment(window xp & jdk1.6.0_20). When i try to generate
>> excel file in my production environment(centOS 5 & OpenJDK 1.6.0-b09), i
>> found that autoSizeColumn does not produce the output as expected. Am i
>> missing anything in my production environment or i should not use
>> openjdk?
>> Please advice.
>> 
>> Regards,
>> Calintz Tee
>> -- 
>> View this message in context:
>> http://old.nabble.com/autoSizeColumn-issue-tp28714294p28714294.html
>> Sent from the POI - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/autoSizeColumn-issue-tp28714294p28720673.html
Sent from the POI - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to