Bluehost.com Web Hosting $6.95

imagettfbbox returning screwy values

This is a discussion on imagettfbbox returning screwy values within the PHP General forums, part of the PHP Programming Forums category; I'm having this really bizarre problem with imagettfbbox. The values it is returning seem to be way off the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-19-2003
Simon Detheridge
 
Posts: n/a
Default imagettfbbox returning screwy values

I'm having this really bizarre problem with imagettfbbox. The values it is
returning seem to be way off the scale. I have gd and ttf support compiled
into php, (running on latest stable apache 1, gentoo linux, latest stable
php)

When I call imagettfbbox I get very very large numbers back. They don't seem
to make any sense at all.

Here's my code:

<?php

$txtSize = imagettfbbox ( 30 , 0 ,
"/usr/X11R6/lib/X11/fonts/truetype/georgia.ttf" , "test" ) ;
print_r ( $txtSize ) ;

?>

And here's the output:

Array ( [0] => 1076630208 [1] => 137911840 [2] => -1073777096 [3] =>
1073930763 [4] => 1076630224 [5] => 1076625940 [6] => -1073777064 [7] =>
1075882071 )

Has anyone seen something like this before? Suggestions? It's not a dodgy
font. Switching fonts makes the numbers change but only slightly.

For reference, my phpinfo is here: http://www.sympages.com/info.php

Help!

Thanks,
Simon
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0