How does iText get the width in it's code? It appears to get correct values.

thanks - dave


----- Original Message ----- 
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "David Thielen" <[EMAIL PROTECTED]>; "itext"
<[EMAIL PROTECTED]>
Sent: Monday, July 28, 2003 4:27 AM
Subject: Re: [iText-questions] Font width problem


> A direct match is probably impossible but you can have a test text to
> compare the widths and then set the AffineTransform in FontRenderContext.
> This may or may not work, I'm no java graphics expert.
>
> Best Regards,
> Paulo Soares
>
> ----- Original Message -----
> From: "David Thielen" <[EMAIL PROTECTED]>
> To: "itext" <[EMAIL PROTECTED]>
> Sent: Sunday, July 27, 2003 18:37
> Subject: [iText-questions] Font width problem
>
>
> > Hi;
> >
> > Attached is a program that determines the text width using both Java and
> > iText. The output is:
> >
> > iText width = 81.26401
> > java width = 75.0
> > java bounds width = 74.09375
> > java bounds method 2 width = 75.0
> >
> > The iText width measure appears to be more accurate when the actual pdf
> > is written. However, my code is all written using the java
> > AttributedString/AttributedCharacterIterator code which handles all the
> > word breaks, etc. based on locale which I also need.
> >
> > Any ideas on how to get the java calls to return values that match what
> > Acrobat displays? Because at the moment I have the end of one word
> > overwriting the bef=gining of the next (when there is a character format
> > change between the words and I have to display each seperately).
> >
> > thanks - dave
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
>
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
>



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to