Nick Winger:
> is it possible to calculate, for a given font ( for example: arial ), the
> length of a string in cm, mm or pt
> ( the length which it will have in the pdf file content )



Yes.

1) Approximate it using the average width of a character in a font * 
string length.

2) Write a Java class and call it from an XSL transform passing in the 
string - and then calculate the length using the font classes/methods in 
FOP. Be careful of possible kerning.






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

Reply via email to