Re: [PHP] TrueType font changes size when rotated?

2007-04-27 Thread Richard Lynch
On Thu, April 26, 2007 7:14 am, Tijnema ! wrote: On 4/26/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, April 25, 2007 3:33 pm, Seth Price wrote: I downloaded your image, enlarged it, and measured it out in photoshop. The distance from the center to the left side is 131px, and center

Re: [PHP] TrueType font changes size when rotated?

2007-04-27 Thread Tijnema !
On 4/27/07, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, April 26, 2007 7:14 am, Tijnema ! wrote: On 4/26/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, April 25, 2007 3:33 pm, Seth Price wrote: I downloaded your image, enlarged it, and measured it out in photoshop. The distance from

Re: [PHP] TrueType font changes size when rotated?

2007-04-26 Thread Tijnema !
On 4/26/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, April 25, 2007 3:33 pm, Seth Price wrote: I downloaded your image, enlarged it, and measured it out in photoshop. The distance from the center to the left side is 131px, and center to right side is 129px. Diameter to top is 129px, and

Re: [PHP] TrueType font changes size when rotated?

2007-04-26 Thread tedd
At 2:14 PM +0200 4/26/07, Tijnema ! wrote: On 4/26/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, April 25, 2007 3:33 pm, Seth Price wrote: I downloaded your image, enlarged it, and measured it out in photoshop. The distance from the center to the left side is 131px, and center to right

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread tedd
At 10:26 PM -0500 4/24/07, Seth Price wrote: Hi all! I've been programming GD and PHP for a while, but I haven't done much with font drawing. I'm trying to layout and draw text, but the text actually changes size and shape depending on the angle it's drawn at. This is making it extremely

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Seth Price
I'm using Safari for Mac also. What are the numbers after 'Hello world' coming out for you? ~Seth On Apr 25, 2007, at 11:05 AM, tedd wrote: At 10:26 PM -0500 4/24/07, Seth Price wrote: Hi all! I've been programming GD and PHP for a while, but I haven't done much with font drawing. I'm

Re: [PHP] TrueType font changes size when rotated? (the plot thickens)

2007-04-25 Thread Seth Price
So I've rewritten my script in C. You can find the source here: http://leopold.sage.wisc.edu/testing/gd_ft_ang.c This script links directly to GD and produces a still different output. On my home system, the output image is correct and the length 89 px. On the web server, the output image is

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread tedd
Yep, I'm calculating the length from the returned bounding box and printing it out. The box seems to randomly expand and shrink depending on the angle. ~Seth ~Seth: I think it's your calculation of the bounding box that's throwing you off -- maybe round off errors -- I don't know. However,

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Seth Price
I downloaded your image, enlarged it, and measured it out in photoshop. The distance from the center to the left side is 131px, and center to right side is 129px. Diameter to top is 129px, and to bottom is 130px. While it may not be an obvious ellipse, it's enough to throw off my

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Seth Price
I've created a bug report and moved discussion to the GD bug tracker: http://bugs.libgd.org/?do=detailstask_id=76 On Apr 25, 2007, at 1:38 PM, tedd wrote: Yep, I'm calculating the length from the returned bounding box and printing it out. The box seems to randomly expand and shrink

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 1:38 pm, tedd wrote: Yep, I'm calculating the length from the returned bounding box and printing it out. The box seems to randomly expand and shrink depending on the angle. ~Seth ~Seth: I think it's your calculation of the bounding box that's throwing you off -- maybe

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 3:33 pm, Seth Price wrote: I downloaded your image, enlarged it, and measured it out in photoshop. The distance from the center to the left side is 131px, and center to right side is 129px. Diameter to top is 129px, and to bottom is 130px. While it may not be an

Re: [PHP] TrueType font changes size when rotated?

2007-04-25 Thread Seth Price
I've written the problem in C and linked it directly to GD, and the problem still occurs. Though the text is still the *most* random when using the PHP version of the library. For more info, see here: http://bugs.libgd.org/?do=detailstask_id=76 I'm not scaling the image, though, I'm rotating

[PHP] TrueType font changes size when rotated?

2007-04-24 Thread Seth Price
Hi all! I've been programming GD and PHP for a while, but I haven't done much with font drawing. I'm trying to layout and draw text, but the text actually changes size and shape depending on the angle it's drawn at. This is making it extremely difficult to lay the text out properly. Am I doing

Re: [PHP] TrueType font changes size when rotated?

2007-04-24 Thread jekillen
On Apr 24, 2007, at 8:26 PM, Seth Price wrote: Hi all! I've been programming GD and PHP for a while, but I haven't done much with font drawing. I'm trying to layout and draw text, but the text actually changes size and shape depending on the angle it's drawn at. This is making it extremely