Bug #15656 Updated: text is rendered too large
| From: | markonen@php.net | Date: | Mon, 01 Jul 2002 16:09:54 +0000 |
| Subject: | Bug #15656 Updated: text is rendered too large | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12671@lists.php.net to get a copy of this message | ||
ID: 15656
Updated by: markonen@php.net
Reported By: weber@capcom.de
-Status: Bogus
+Status: Closed
Bug Type: GD related
Operating System: SuSE 7.0/kernel 2.2.16
PHP Version: 4.0.6
New Comment:
PHP's gd interface currently uses an output resolution of
72dpi. This means that a letterform 72 points (= one inch)
high will result in output that is 72 pixels high.
If you are used to some other dpi setting, the text gd
outputs may appear either too big or too small.
Compensating for this is luckily very easy.
Previous Comments:
------------------------------------------------------------------------
[2002-06-28 04:13:14] sniper@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
------------------------------------------------------------------------
[2002-02-21 05:40:04] weber@capcom.de
<?
$im = imageCreate(170,136);
ImageColorAllocate ($im, 128,128,150);
$black = ImageColorAllocate ($im, 0, 0, 0);
ImageTTFText($im, 18, 0, 17, 40, $black, "./verdana.ttf", "HELLO
WORLD");
ImageGif ($im);
?>
'./configure' '--prefix=/home/weber' '--with-png-dir=/home/weber'
'--with-apxs=/home/weber/bin/apxs' '--with-zlib'
'--with-gd=/home/weber' '--enable-gd-native-tt'
'--with-ttf=/home/weber' '--with-gettext' '--with-mysql'
'--enable-sockets' '--with-zlib-dir=/usr' '--with-bz2'
gd version 1.8.4 & 1.8.3(tested both)
freetype version 1.3.1
Would be nice to have this annoying bug solved.......
Webster
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15656&edit=1