|
|
|
|
![]() ![]() |
Aug 24 2005, 11:00 AM
Post
#1
|
|
|
Member [ Level 2 ] Group: Members Posts: 56 Joined: 18-July 05 Member No.: 7,201 |
CODE Using imageloadfont <?php $im = imagecreate(50, 20); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); imagefilledrectangle($im, 0, 0, 49, 19, $white); $font = imageloadfont("04b.gdf"); imagestring($im, $font, 0, 0, "Hello", $black); imagepng($im); ?> This is an example for illustrating how to create a image including a string with a specific font. In the codes, a font named "04b.gdf" is loaded and the string is created according to the font. What is the font named gdf? I mean what's the limitation or specification of the font. I wish to dynamically create a Chinese Words in a image. Is it possible to implemete it in PHP? If the imageloadfont can load my font in MS Window, that will be grateful. I can't think that I can map each Chinese word to a specific image, and combine some Chinese word image to form a string, because there will be more than 10,000 words in a Chinese font. Can anyone give me a exact answer about whether I can dynamically create a Chinese string in a image? Thank you. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 22nd November 2008 - 11:44 PM |