开发者

php work with images: write complete word in Arabic, ttf font [duplicate]

This question already has answers here: Closed 10 years ago.
开发者_运维问答

Possible Duplicate:

How can I write Non English Characters such as Arabic or Persian characters into an image?

I wrote this question before but with out answers or views

here write Arabic to image error

question now is how to write good word in Arabic

mean

if I want to write احمد

result is ا ح م د

between word is not spaces but ttf font cut every letter alone

mean

example this letter ح

in this beginning or center of word wrote as ex : محم حم

in the end of word wrote like بلح

Is there way to do this on image?

I use this fonts tahoma.ttf , arial.ttf


Might be a limitation of the font - I did it using koodak.ttf (a free font) and had no spacing issues.

I think what I did for a project a long time ago was to loop through the string (an example used here) and use a for loop, or possibly imagettfbbox to measure the width of each character to output the letters in the correct spacing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜