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

Emoji doesn't render for typst \u{27A1} #7

Closed
youwuyou opened this issue Apr 9, 2024 · 3 comments
Closed

Emoji doesn't render for typst \u{27A1} #7

youwuyou opened this issue Apr 9, 2024 · 3 comments

Comments

@youwuyou
Copy link

youwuyou commented Apr 9, 2024

I was trying to use the right arrow emoji, i.e with the escape code \u{27A1} named arrow.r.filled as specified under official typst document here and it does not seem to work unfortunately, while the other emojis are rendered correctly when I export the pdf.

image

Here is my web workspace view, it seems to me that the typst is using the "Right Arrow on Twitter / X Twemoji 15.0.1" variant instead?

image

Thanks for the great work!

@polazarus
Copy link
Owner

polazarus commented Apr 10, 2024

Noto Color Emoji (the only font supported for now) does not implement it. And I don't why it should either: this symbol is a Black Rightwards Arrow... so no color ;)
One way to support it would be to add more symbols from Noto [] Emoji for instance.

PS: I don't see why Twemoji defines it in blue?!

my bad! will investigate it

@polazarus
Copy link
Owner

polazarus commented Apr 10, 2024

After looking into it, it's "a feature not a bug"!

So yes \u{27A1} is not truly an emoji. A classic font may provide a classic fat arrow for it.
But the sequence \u{27A1}\u{FE0F} (variation selector 16) is definitely one.
Most emoji picker will input the sequence when asking for the right arrow.

I had to actually care about emoji sequences because for Noto Emoji: 0, 1, ... are emoji too .

IMO Typst should change the definition of #emoji.arrow.r.filled.

@polazarus
Copy link
Owner

Reported to typst #3915
Wontfix on my part

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

No branches or pull requests

2 participants