Printing Japanese text with imagettftext

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Suneo
Forum Newbie
Posts: 5
Joined: Thu Oct 30, 2003 7:27 pm

Printing Japanese text with imagettftext

Post by Suneo »

I want to write a script that will generate a dynamic image that contains japanese text. The server is setup for japanese and I have the fonts that contain the japanese characters. This is the result image I get when I try to display japanese text with imagettftext: http://suneo.no-ip.com/ttf.php Does anyone know what I have to do to get it to work?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

[php_man]setlocale[/php_man] or [php_man]header[/php_man] is a good place to start. Check the usercomments on setlocale for more information. I think that it just might help you.
Suneo
Forum Newbie
Posts: 5
Joined: Thu Oct 30, 2003 7:27 pm

Post by Suneo »

no, it doesn't seem like that. I need a way for FreeType to display multibyte characters, I would really like a way that doesn't involve messing with source code as I get alot of problems when ever I try to compile php.
Post Reply