Jump to content

Changing font size of GDF fonts over PNG image


deva

Recommended Posts

Hi,

 

I used imagecreatefrompng("ur.png"),

and created a png image. And used

imagestring($im, $fontgdf, $leftPos, $height, $text, $txtcolor); to write over the png image. I downloaded and used gdf fonts. Function imagestring() does not take fontsize as parameter, therefore i could not change the font size. Any one help me how to change the font size of gdf fonts over png images.

 

thanks,

deva

Im not sure about gdf fonts, but I suggest you use ttf fonts (which are located in your C:/WINDOWS/Fonts directory).

 

The function http://nl2.php.net/manual/en/function.imagettftext.php

 

For any further information about gd lib: http://nl2.php.net/image

 

FD

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.