Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 9th, 2006, 10:40 AM
Authorized User
 
Join Date: Jul 2004
Location: rajshahi, , Bangladesh.
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rajuru Send a message via Yahoo to rajuru
Default unicode text to image

I want to produce some unicode text as image.
my string was a unicode text like
$str="#2476;#2494;#2434;#@$*@:#2494;#2470;#2503;#2 486;";
I want to produce this string as image using Vrinda font.
Code:
<?php

$str="#2476;#2494;#2434;#@$*@:#2494;#2470;#2503;#2486;";
header("Content-type:image/jpeg");
$im=imagecreate(100,50) or die("Can't create image");
$bg=imagecolorallocate($im,255,255,255);
$text=imagecolorallocate($im,0,0,0);
$font=imageloadfont("vrinda.ttf");
imagestring($im,$font,5,5,$str, $text);

imagejpeg($im);


?>
but the above code is not working.

Best Regard:
Md. Zakir Hossain (Raju)

www.rajuru.xenexbd.com - my blog with PHP scripts, PHP Book Review and many more
__________________
Best Regard:
Md. Zakir Hossain (Raju)

www.rajuru.xenexbd.com - my blog with PHP scripts, PHP Book Review and many more
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unicode UTf-8? System.Text.UTF8Encoding from VBA? forum1 VBScript 11 June 2nd, 2017 06:13 AM
Convert Text(Sql Server Text Field) to Image(JPG) srinivas72 ADO.NET 2 February 13th, 2009 06:31 PM
text over an image using CSS? toilandtrouble CSS Cascading Style Sheets 4 July 16th, 2006 06:47 PM
System.Text.UTF8Encoding? Unicode convert?!? forum1 Excel VBA 0 May 9th, 2005 04:43 PM
Visual FoxPro, Rich Text control and Unicode Glamdring VS.NET 2002/2003 0 November 19th, 2004 07:15 AM



All times are GMT -4. The time now is 07:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.