> 
> I was assuming that the problem lies in old JDK but now I think that this 
> might
> rather be some fonts issue. Has anyone come across this kind of problem?

Yes, it is a fonts issue. You will need to install fonts into your JDK. For 
example, Java comes with:

/usr/java/jre/lib/fonts> ls -1
LucidaBrightDemiBold.ttf
LucidaBrightDemiItalic.ttf
LucidaBrightItalic.ttf
LucidaBrightRegular.ttf
LucidaSansDemiBold.ttf
LucidaSansRegular.ttf
LucidaTypewriterBold.ttf
LucidaTypewriterRegular.ttf
fonts.dir

Would need to add fonts like this:

/usr/local/java/jre/lib/fonts> ls -1
Helvetica-Bold.ttf
Helvetica-BoldOblique.ttf
Helvetica-Oblique.ttf
Helvetica.ttf
LucidaBrightDemiBold.ttf
LucidaBrightDemiItalic.ttf
LucidaBrightItalic.ttf
LucidaBrightRegular.ttf
LucidaSansDemiBold.ttf
LucidaSansRegular.ttf
LucidaTypewriterBold.ttf
LucidaTypewriterRegular.ttf
Times New Roman Bold Italic.ttf
Times New Roman Bold.ttf
Times New Roman Italic.ttf
Times New Roman.ttf
Wingdings.ttf
Wingdings2.ttf
Wingdings3.ttf
fonts.dir

Having Helvetica (or better Arial) will allow autoSizeColumn() to get the 
correct metrics.

I suppose it is possible now that the Adobe Font Metrics are available to have 
versions of POI that don't depend on Java2D for font layout, but that effort 
would not be small.

We also experience slight layout differences in our work in the PowerPoint 
format.

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

Reply via email to