Re: GD: º becomes $
| From: | hugh danaher | Date: | Fri, 26 Apr 2002 08:43:52 +0000 |
| Subject: | Re: GD: º becomes $ | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94708@lists.php.net to get a copy of this message | ||
Another solution would be to add another imagestringup with only the "O"
character at the right size and location.
Hope this helps,
Hugh
----- Original Message -----
From: <heinisch@creaction.de>
To: <php-general@lists.php.net>
Sent: Thursday, April 25, 2002 11:40 PM
Subject: Re: [PHP] GD: º becomes $
At 25.04.2002 18:03, you wrote:
> When I create an image, º becomes $. Actually a small $. (pratically
>half-sized). Maybe it's a "s" with a tail. I really have never seen this
>character before :-)
>
> An example:
>
>$im = @ImageCreate (450, 500)
> or exit ("Cannot Initialize new GD image stream");
>$background_color = ImageColorAllocate ($im, 255, 255, 255);
>$text_color = ImageColorAllocate ($im, 0, 0, 0);
>$horizonte = 465;
>$vertical = 25;
>$pasta = 'Pasta Nº: ';
>ImageStringUp ($im, 5, $vertical, $horizonte, $pasta, $text_color);
>ImagePng ($im,'etiqueta.png');
>
> Outputs:
>
>Pasta N$:
Shouldn´t you load the font you want to uses, before you use it?
something like $font=imageTTFloadfont("yourfont.ttf") // untested, cannot
find the manual right now
And is the char, you want to use, available in that font?
HTH Oliver
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php