我使用TIC将文本转换为图像.
我已经对此进行了大量搜索,但它似乎是Unicode问题(初始内侧和最终字母的unicodes)或者可能是内容类型,因为图像是在PNG中.
如果我没有呼应与图像转换content type text/html
和charset=UTF-8
我得到所需的输出加入乌尔都语字母.
require_once 'lib/tic.php';
$text="???? ??? ";
TIC::factory('C:\Windows\Fonts\Nastalique.ttf')
->setText($text)
->setPadding(10)
->setBgColor('ff0000')
->setFontColor(0xff, 0xff, 0x00)
->setFontSize(24)->create(true);
Run Code Online (Sandbox Code Playgroud)
出去吧
? ? ? ? ? ? ?
Run Code Online (Sandbox Code Playgroud)