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

Is colored emoji font rendering currently supported? #2205

Closed
2 tasks done
Gremious opened this issue Jan 19, 2024 · 2 comments
Closed
2 tasks done

Is colored emoji font rendering currently supported? #2205

Gremious opened this issue Jan 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Gremious
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

I am running the master branch, on Windows. I have the following in my application Settings:

default_font: Font::with_name("Noto Color Emoji"),
fonts: vec![
	include_bytes!("../resources/fonts/NotoColorEmoji-Regular.ttf").as_slice().into(),
],

Emoji text e.g.

text(String::from("Hi: 😀😁😂💖♥️ ❤️❤️ "))
	.horizontal_alignment(alignment::Horizontal::Center)
	.size(16)
	.height(Length::Fill),

Does not render:

image

If I switch to default_font: Font::MONOSPACE, then regardless of what extra I load in fonts, they aren't being used as fallbacks, they do not render the emoji characters:

image

The font: https://fonts.google.com/noto/specimen/Noto+Color+Emoji

What is the expected behavior?

This:

218183746-3ddf9daf-14e5-4878-8344-29db5eca5611

How did you guys achieve this?

Version

master

Operating System

Windows

Do you have any log output?

No response

@Gremious Gremious added the bug Something isn't working label Jan 19, 2024
@Gremious Gremious changed the title Is colore emoji font rendering currently supported? Is colored emoji font rendering currently supported? Jan 19, 2024
@dtzxporter
Copy link
Contributor

Try setting advanced text shaping on the text widget. It's required for most unicode symbols.

@Gremious
Copy link
Author

Yep that worked god bless 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants