Johannsen, Cory wrote: >The javadoc states that the column widths are set in units of 1/256 of a >character. What font size is that based upon? I've noticed that if the >font is increased, the column sizing still clips the cell, and I would like >to be able to compensate for an increased font size by scaling the column >width. > >Thanks, >Cory Johannsen > > Excellent questions.
You'll need to use "font metrics" from the AWT but it will load X on a unix server. (so it will have to be headful or use xvfb) --- There is an RFE in bugzilla for a clean-room font metrics implementation. As for the relationship to the column width. For the HSSF Serializer I had to come up with a "magic equation" (just goofed around with ratios until it was right...most of the time) for handling this. Its a big hack. I don't really understand the units and I think the 1/256 of a character is a lie or a 1/256th of X where X is undefined. -andy -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
