arlabbafi Posted May 25, 2009 Share Posted May 25, 2009 You can use any TrueType Font that includes a Unicode mapping table. Fonts such as Wingdings will not work. <? $im = ImageCreate(600,7150); $white = ImageColorAllocate($im,255,255,255); $black = ImageColorAllocate($im,0,0,0); $dir = opendir('/usr/share/fonts/truetype'); $y=30; while($file = readdir($dir)) { if(substr($file,strrpos($file,'.'))=='.ttf') { ImageString($im,5,5,$y-20,substr($file,0,-4),$black); ImageTTFText($im,30,0,100,$y,$black, substr($file,0,-4),"ABCdéf123"); $y+=40; } } Header('Content-Type: image/png'); ImagePNG($im); ?> Link to comment https://forums.phpfreaks.com/topic/159607-truetype-fonts/ Share on other sites More sharing options...
jxrd Posted May 25, 2009 Share Posted May 25, 2009 You can use any TrueType Font that includes a Unicode mapping table. Fonts such as Wingdings will not work. So what...is that like a problem or something? Link to comment https://forums.phpfreaks.com/topic/159607-truetype-fonts/#findComment-841822 Share on other sites More sharing options...
JonnoTheDev Posted May 26, 2009 Share Posted May 26, 2009 Why do you have Arsenal & Barca as your avatar. Where you at the 2006 Champions League final? Link to comment https://forums.phpfreaks.com/topic/159607-truetype-fonts/#findComment-842145 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.