On Sat, Nov 23, 2002 at 02:16:58PM +0100, Benja Fallenstein wrote:
Hi,
/** Get the default size of the cell at a given scale.
* This method exists for the benefit of AWT, where fonts cannot
* be scaled accurately.
* <p>
* Note that the returned width and height are in Box scale:
* they are not multiplied by the scale parameter.
* @param c The cell to get size for, or null for a default size.
*/
public void getSize(...);
Doesn't make sense to me. How can this give "the default size of the
cell at a given scale," if "[the width and height] are not multiplied by
the scale parameter"?
Ok, consider that you're placing a box into a coordinate system cs that you were
given from somewhere.
You do
scale = VobCoorder.getFontScale(cs)
which returns the scale of the font system, and then
cellinbox.getSize(scale,...)
which returns the size you should use to put things into cs!
If they were multiplied by scale, you'd have to divide again outside.