Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Is It Possible To Create A String Image In Chinese
whistle
post Aug 24 2005, 11:00 AM
Post #1


Member [ Level 2 ]
Group Icon

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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Php: Write Random Text As Image(3)
  2. Saving A Php Generated Image To The Server(5)
  3. How Do I Make PHP Based Image Gallery Like This?(20)
  4. Uploading Image Via Admin Menu?(2)
  5. How Do I Resize An Image On The Fly?(8)
  6. Script For Viewing A Random Image Needed(3)
  7. Php :: Adding Image Over Image(5)
  8. Image Works With Php And Gd(3)
  9. Php :: Image Pixel Per Inch And Conversion(1)
  10. Need Help With Background Image...(12)
  11. Image Popup On Mouseover(23)
  12. Dynamic Gd Image(2)
  13. Dynamic Php Image And Better Php Code Question(10)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 11:44 PM