xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fred redf <popincourt2...@yahoo.fr>
Subject Re: getting the length in cm,mm or pt of a string
Date Fri, 22 Feb 2002 14:53:49 GMT
Hi all,

 --- Phil Harling <philip.harling@db.com> 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 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.

What means 'kerning' exactly?


> 
> 
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-dev-unsubscribe@xml.apache.org
> For additional commands, email:
> fop-dev-help@xml.apache.org
>  

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Mime
View raw message