problem with imagettftext function

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
persiangulf
Forum Commoner
Posts: 30
Joined: Tue Jan 29, 2008 12:04 pm

problem with imagettftext function

Post by persiangulf »

hi all
i have problem with writing persian with imagettftext. as you know persian is a right to left language and the words are connected to each other.
but when i want to write persian with imagettftext , i get a left to right and seperated text in image file.(the right to left feature is not as important as connected words ofcourse!)
i don't know if php team is going to fix this or are there any solution for it?
thanks
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: problem with imagettftext function

Post by onion2k »

Moved to the GD forum.

I doubt there's any chance of it being 'fixed'. It's not really a bug, it's just a feature that isn't very high priority for the people who maintain GD. Have you considered any workarounds? Maybe drawing one letter at a time with very specific placement? Maybe there are fonts designed for this that have the kerning set displaying on systems that aren't set up for Persian text?
Post Reply