Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2006, 10:40 AM
Authorized User
 
Join Date: Jul 2004
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Unicode UTf-8? System.Text.UTF8Encoding from VBA? forum1 VBScript 11 June 2nd, 2017 05: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 05:47 PM
System.Text.UTF8Encoding? Unicode convert?!? forum1 Excel VBA 0 May 9th, 2005 03:43 PM
Visual FoxPro, Rich Text control and Unicode Glamdring VS.NET 2002/2003 0 November 19th, 2004 07:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.