deva Posted June 12, 2007 Share Posted June 12, 2007 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 Link to comment https://forums.phpfreaks.com/topic/55238-changing-font-size-of-gdf-fonts-over-png-image/ Share on other sites More sharing options...
Full-Demon Posted June 12, 2007 Share Posted June 12, 2007 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 Link to comment https://forums.phpfreaks.com/topic/55238-changing-font-size-of-gdf-fonts-over-png-image/#findComment-273035 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.