Doesn't seem to support Chinese
See original GitHub issueI wanted to show name on the right bottom side of a image, the name could be English or Chinese, but it always print ??? for Chinese, even I tried to encode the test by UTF-8.
var bytes = Encoding.Default.GetBytes("面朝大海的猪\r\n@m0078341");
var text = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
var encoding = new DrawableTextEncoding(Encoding.UTF8);
var drawable = new DrawableText(38, 0, text);
var gravity = new DrawableGravity(Gravity.Southeast);
var font = new DrawableFont("Microsoft YaHei UI");
var antialias = new DrawableTextAntialias(true);
var size = new DrawableFontPointSize(14);
var color = new DrawableFillColor(Color.White); img.Draw(drawable, gravity, font, antialias, size, color, encoding);
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Why does it seem like Chinese people don't want to speak ...
From my experience, it's because they just simply aren't accustomed to speaking Chinese with a non-Chinese, so it doesn't even occur to them...
Read more >Why do non-Chinese people feel that Chinese is difficult to ...
It's time to call out two myths that lead non-Chinese speakers to feel that Chinese is one of the most difficult languages to...
Read more >What the West Gets Wrong About China
China's rulers see foreign engagement as a source less of opportunity than of threat, uncertainty, and even humiliation.
Read more >Most Americans Have 'Cold' Views of China. Here's What ...
Negative views of China have increased substantially since 2018. Today, 67% of Americans have “cold” feelings toward China on a “feeling ...
Read more >can't type chinese even with chinese input switched on in ...
I'm supposed to be able to switch between the 2 languages by pressing some hot key, but it doesn't work, no matter when...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was unable to test it with those fonts but I found something that could probably cause the font naming issue. Please give it a try with the next release that will probably be published this weekend.
I just tried latest version 10.1.0 and it works now. Thanks for your efforts!