Re: TrueType font changes size when rotated?
| From: | Seth Price | Date: | Wed, 25 Apr 2007 16:22:19 +0000 |
| Subject: | Re: TrueType font changes size when rotated? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253729@lists.php.net to get a copy of this message | ||
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 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 something wrong? Is there a bug in FreeType? How can I consistently draw text? For example: The following code draws 'Hello world' at differing angles. But all drawings are at right angles to each other. FreeType shouldn't even need to do any resampling or interpolating, but each text is drawn with a unique length and look. You can see the output of the following code here: http://leopold.sage.wisc.edu/test2.phpSeth: Everything looks fine to me. On my browser all the text is the same size (I measured it). But then again, I'm using Safari for the Mac. Maybe it's a browsers problem. Cheers, tedd --------- http://sperling.com http://ancientstones.com http://earthstones.com