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

[Bug] Missing regional letters and no fallback #50

Open
Leny1996 opened this issue Apr 5, 2024 · 4 comments
Open

[Bug] Missing regional letters and no fallback #50

Leny1996 opened this issue Apr 5, 2024 · 4 comments

Comments

@Leny1996
Copy link

Leny1996 commented Apr 5, 2024

Hello,
maybe I'm not getting something regarding fontconfig, but here is the problem:
I was using old AUR package with emojis, I've removed the package and moved to this package. Later after reboot I've noticed that some emojis are not working and I see blank space. I was playing with fontconfig (found out that Twemoji has those emojis), according to Emojipedia
Now, I've changed my fontconfig to have something like:

  <alias binding="same">
    <family>Apple Color Emoji</family>
      <prefer>
        <family>Apple Color Emoji</family>
        <family>Twemoji</family>
      </prefer>
  </alias>

  <alias binding="strong">
    <family>emoji</family>
      <prefer>
        <family>Apple Color Emoji</family>
        <family>Twemoji</family>
      </prefer>
  </alias>

  <alias binding="strong">
    <family>EmojiOne</family>
    <prefer>
      <family>Apple Color Emoji</family>
      <family>Twemoji</family>
    </prefer>
  </alias>
  
  <alias binding="strong">
    <family>Emoji One</family>
    <prefer>
      <family>Apple Color Emoji</family>
      <family>Twemoji</family>
    </prefer>
  </alias>
...

And if I check ie.

$ fc-match 'Source Sans Pro' -s
NotoSansNerdFont-Regular.ttf: "NotoSans Nerd Font" "Regular"
NotoSansNerdFont-Italic.ttf: "NotoSans Nerd Font" "Italic"
apple-color-emoji.ttf: "Apple Color Emoji" "Regular"
twemoji.ttf: "Twemoji" "Regular"

I can see the proper order I wanted... but in a browser/any application, I cannot see Twemoji emojis on regional ones, but still blank space. If I modify font-family in DevTools and add Twemoji as first, then it renders properly.
Previously I was using noto-fonts-emoji-apple.

@dmlls
Copy link
Collaborator

dmlls commented Apr 16, 2024

Hi @Leny1996, just to double-check, did you install the font through https://aur.archlinux.org/packages/ttf-apple-emoji? This font conflicts with ttf-twemoji-color, so I would imagine you don't have ttf-twemoji-color installed? (makepkg / yay, etc. will not let you have both installed).

Now, a possible solution that doesn't involve having to install other fonts would be to include these missing emoji into this font, as we've done in the past with certain emoji (see #47 (comment)).

@Leny1996
Copy link
Author

Hi @dmlls, sorry for late response.
Yes, I have ttf-apple-emoji installed from AUR, but regarding Twemoji I'm using this package: https://aur.archlinux.org/packages/ttf-twemoji
Switched my config to Twemoji now, because it's unusable with Apple ones.
Weird thing is that it should fallback to second emoji if particular unicode is not found, so if U+1F1F1 is not inside Apple Color Emoji, then try to use it from Twemoji etc. - that's how I imagine my setup provided in first post.

@dmlls
Copy link
Collaborator

dmlls commented May 8, 2024

Could you point me to some of the emoji missing in Apple Color Emoji?

I have the feeling that what's happening here is that the codepoints for these emoji are still being registered by Apple Color and mapped to no image, and that's why the blank spaces are there.

@Leny1996
Copy link
Author

Leny1996 commented May 8, 2024

Sure @dmlls. For example all of regional letters: https://emojipedia.org/search?q=regional

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