question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Doesn't seem to support Chinese

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dlemstracommented, Mar 3, 2022

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.

1reaction
CainSakuracommented, Mar 7, 2022

I just tried latest version 10.1.0 and it works now. Thanks for your efforts! image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found