Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document emoji not being supported by the default project font #66966

Closed
Th-eo opened this issue Oct 6, 2022 · 7 comments · Fixed by #67083
Closed

Document emoji not being supported by the default project font #66966

Th-eo opened this issue Oct 6, 2022 · 7 comments · Fixed by #67083

Comments

@Th-eo
Copy link

Th-eo commented Oct 6, 2022

Godot version

v4.0.beta2.official [f8745f2]

System information

Fedora Linux 35 (Workstation Edition), 64-bit, GNOME 41.6

Issue description

After browsing issues like #49145 (comment), I found out that Godot 4 should've fixed emoji support in engine and in labels etc, but to my surprise they don't work in Fedora yet. I've tried downloading other people's projects with them and addons that should allow their support, but to no avail. They are rendered as cubes.

image
When pasting this emoji: 😊

Steps to reproduce

  1. Create a label
  2. Paste emojis into it such as 😊
  3. No emoji displayed

Minimal reproduction project

emoji bug.zip

@timothyqiu
Copy link
Member

This is because the default font does not contain this emoji. Changing the font to Noto Color Emoji displays it correctly.

@Th-eo
Copy link
Author

Th-eo commented Oct 6, 2022

That font won't display them as colored emojis as you can see here, and it comes with the limitation of breaking non-emoji text.
image

@timothyqiu
Copy link
Member

Changing the font override in the MRP works for me:

ksnip_20221006-155452

As you can see, the font preview is already monochrome in your screenshot. So I think there's probably something wrong with the font or font configuration.

@bruvzg
Copy link
Member

bruvzg commented Oct 6, 2022

Only bitmap emoji fonts are supported (e.g., Noto Emoji), SVG in OT fonts are not (e.g., Twitter Color Emoji, see also #64530 for implementation draft, currently unfinished due to issues with SVG rendering library).

@Zireael07
Copy link
Contributor

BTW I think it's unrelated to your distro, just a matter of Godot's default font?

@bruvzg
Copy link
Member

bruvzg commented Oct 6, 2022

I think it's unrelated to your distro, just a matter of Godot's default font?

System fonts are not used by default, as well distro FreeType (in official builds), so it's not (if Godot is installed from distro package, it might use system FreeType and have some additional limitations).

@Calinou Calinou changed the title Fedora distro doesn't have emoji support Document emoji not being supported by the default project font Oct 6, 2022
@Calinou
Copy link
Member

Calinou commented Oct 6, 2022

Can we emit a node configuration warning if the Label's text contains any characters that aren't found with the Label's current font?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants