Previously i set my font to arial and bold in my application, i found a big
different between the outcome and what i expected. Later on, i tried to
remove bold font, the outcome from autoSizeColumn looks better but i think
the arial font still cannot be recognized. Any idea on how to install needed
font in my production server? Below are output from $JAVA_HOME/jre/lib/


accessibility.properties          fontconfig.Ubuntu.properties.src
amd64                             im
applet                            images
audio                             jce.jar
calendars.properties              jexec
charsets.jar                      jsse.jar
classlist                         jvm.hprof.txt
cmm                               logging.properties
content-types.properties          management
currency.data                     management-agent.jar
ext                               meta-index
flavormap.properties              net.properties
fontconfig.bfc                    psfontj2d.properties
fontconfig.Fedora.bfc             psfont.properties.ja
fontconfig.Fedora.properties.src  resources.jar
fontconfig.properties.src         rt.jar
fontconfig.SuSE.bfc               security
fontconfig.SuSE.properties.src    sound.properties
fontconfig.Ubuntu.bfc             zi


Nick Burch-11 wrote:
> 
> On Fri, 28 May 2010, calintz wrote:
>> 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.
> 
> autoSizeColumn relies on finding a close enough font to be able to figure 
> out how wide to make the column be. I bet you have the correct fonts on 
> your dev box, but not in production. Try installing some more fonts 
> (ideally the ones you use in excel!) on the production box, make sure that 
> java there can see them, then retry your code
> 
> Nick
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/autoSizeColumn-issue-tp28714294p28716000.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