2017-03-17 51 views
0

我使用的干預圖像軟件包在Laravel創建的圖像高棉Unicode的水印,但所有這些字符不是使用Unicode格式識別如何識別介入圖像中的高字節unicode?

使用defualt代碼

// create Image from file 
$img = Image::make('public/foo.jpg'); 

// write text 
$img->text('The quick brown fox jumps over the lazy dog.'); 

// write text at position 
$img->text('The quick brown fox jumps over the lazy dog.', 120, 100); 

// use callback to define details 
$img->text('ប្រទេសកម្ពុជា', 0, 0, function($font) { 
    $font->file('foo/KhmerUnicodeFont.ttf'); 
    $font->size(24); 
    $font->color('#fdf6e3'); 
    $font->align('center'); 
    $font->valign('top'); 
    $font->angle(45); 
}); 

// draw transparent text 
$img->text('foo', 0, 0, function($font) { 
    $font->color(array(255, 255, 255, 0.5)) 
}); 

我unrecognize格式爲圖片。

enter image description here

回答

1

我可能會建議你使用的是能夠在不同的設計工具,使字體如Photoshop中,大部分字體開始的Kh

+0

讓我試試那些今晚的字體, –

+0

親愛的OSify, 我已經嘗試過那些字體,但它仍然是相同的 這是你可以看到的視頻https://youtu.be/dT-NBmmsmz8 –

+0

它只是這些字體不支持UTF-8? –