#15656 [Com]: text is rendered too large
| From: | php at tecnopolis dot ca | Date: | Sat, 10 Aug 2002 10:09:24 +0000 |
| Subject: | #15656 [Com]: text is rendered too large | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-16424@lists.php.net to get a copy of this message | ||
ID: 15656
Comment by: php@tecnopolis.ca
Reported By: weber@capcom.de
Status: Closed
Bug Type: GD related
Operating System: SuSE 7.0/kernel 2.2.16
PHP Version: 4.0.6
New Comment:
> Compensating for this is luckily very easy.
But you fail to say how? Another Fermat?
I've tried simply manually scaling down the font size, but I can't get
ttf's in php 4.1.2 to look the same as they did in 4.0.6 (which looked
nice!)
Please fill us in! Thanks.
Previous Comments:
------------------------------------------------------------------------
[2002-07-01 12:09:54] markonen@php.net
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.
------------------------------------------------------------------------
[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