Re: GD: º becomes $

From: Date: Fri, 26 Apr 2002 06:40:03 +0000
Subject: Re: GD: º becomes $
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94702@lists.php.net to get a copy of this message
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

« previous php.general (#94702) next »