如何在干预图像中识别高棉统一码? [英] How to recognize khmer unicode in intervention images?
本文介绍了如何在干预图像中识别高棉统一码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Laravel中使用干预图像包在图像上创建高棉Unicode水印,但所有这些字符都无法用Unicode格式识别
I'm using Intervention images packages in Laravel to create Khmer Unicode watermark on the images but all those characters isn't recognize with Unicode format
使用的默认代码
// 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))
});
我的图像格式无法识别.
I got unrecognize format as the images.
推荐答案
我建议您使用能够在其他设计工具(例如Photoshop)中呈现的字体,大多数字体以 Kh
I may suggest you to use the font that be able to render in different design tool such as for Photoshop, mostly the font start with Kh
- Font support design
- Font that may work for different hard render
这篇关于如何在干预图像中识别高棉统一码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文