flame-engine / flame

A Flutter based game engine.
https://flame-engine.org
MIT License
8.98k stars 879 forks source link

Chinese characters cannot be displayed on the web #3184

Open chrislitw opened 1 month ago

chrislitw commented 1 month ago

What happened?

Hi guys, I am testing Flame's performance on the web.

When I use TextComponent and then run flutter build web, Chinese characters do not display, but English characters do.

You can see the demo here: Flame Spine Demo The code is available here: GitHub Repository

Thank you all for your help.

What do you expect?

Show Chinese characters.

How can we reproduce this?

No response

What steps should take to fix this?

No response

Do have an example of where the bug occurs?

No response

Relevant log output

No response

Execute in a terminal and put output into the code block below

Output of: flutter doctor -v

Affected platforms

Web

Other information

No response

Are you interested in working on a PR for this?

spydon commented 4 weeks ago

It works like it should on the other platforms? (Or the ones you have tried)

spydon commented 2 weeks ago

@chrislitw?

OlegNovosad commented 2 weeks ago

@spydon I just verified on Android with demo app, works as expected.

Might be related to this Flutter issue: https://github.com/flutter/flutter/issues/77023

spydon commented 2 weeks ago

@OlegNovosad that seems like a very likely candidate, I'll mark this as a flutter issue until we know more.