Login   Register  
PHP Classes
elePHPant
Icontem

File: ToIpt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jahan Rayaneh  >  Write Farsi to Image  >  ToIpt  >  Download  
File: ToIpt
Role: Documentation
Content type: text/plain
Description: get a unicode or utf-8 text in farsi or arabic and return a text to send to imagettftext
Class: Write Farsi to Image
Convert Farsi text to render with ImageTTFText
Author: By
Last change:
Date: 9 years ago
Size: 459 bytes
 

Contents

Class file image Download
in this function, you can pass a farsi or arabic text to "toipt" function and get a correct text that you can write it to image by "imageTTFText".
but you should use my font for your php code or create your own font by "font creator" software or another softwares.

for this reason (creating new font) in "font creator", after opening your font, get peropety of all characters and set "map" to correct integer. you can find correct integers map in my font.