You are not logged in.

#1 2020-04-24 03:16:13

andrewjmcgehee
Member
Registered: 2020-04-24
Posts: 2

Flag Color Emoji Rendered Improperly

Let me begin by saying this is super non-essential and I am just very particular about my terminal emulator. I am using alacritty with the default configuration (for now) and trying to set up color emoji with ttf-joypixels. It seems that all of the emoji work fine except for the flags for some reason.

Here is my font config:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <alias>
    <family>serif</family>
    <prefer><family>Linux Libertine</family></prefer>
  </alias>
  <alias>
    <family>sans-serif</family>
    <prefer><family>Cantarell</family></prefer>
  </alias>
  <alias>
    <family>sans</family>
    <prefer><family>Cantarell</family></prefer>
  </alias>
  <match target="pattern">
    <test name="family"><string>monospace</string></test>
    <edit name="family" mode="append"><string>JoyPixels</string></edit>
  </match>
</fontconfig>

Here is my locale:

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I am testing by curling this website https://eosrei.github.io/emojione-color … -demo.html
The expected behavior is for flags to render normally, but this is the output of the section in question https://pasteboard.co/J5eleAx.png

I have already tried using other fonts like Noto Color Emoji and Symbola, but the issue persists (albeit slightly different styles). I have also made sure to update the font cache after making font changes with

fc-cache -f

and to restart the terminal. I appreciate any help!

Offline

#2 2020-04-28 14:39:36

andrewjmcgehee
Member
Registered: 2020-04-24
Posts: 2

Re: Flag Color Emoji Rendered Improperly

I sort of found my own answer, though it isn't really a solution. Flag emojis are emitted as a chord of two separate regional emojis (e.g., U and S for united states flag). This is obviously confusing for a terminal emulator because it would be difficult to distinguish when the user wants to render to two emojis separately vs. together. I'm certain it can be done, but it may not be worth it for people implementing the emulators. This can be closed.

Offline

Board footer

Powered by FluxBB