Re: getting the length in cm,mm or pt of a string

2002-02-22 Thread fred redf
Hi all, --- Phil Harling <[EMAIL PROTECTED]> a écrit : > 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 usin

Re: getting the length in cm,mm or pt of a string

2002-02-21 Thread Phil Harling
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 c