profile
viewpoint

Ask questionsSome Unicode characters (emojis) are b/w and others are colored

Testing: #91303 on Ubuntu 19.10 (running in Parallels)

  • open VI in VS Code integrated terminal
  • enter some emojis (e.g. 🥕carot U+1F955, 🍔hamburger U+1F354, 🥎softball: U+1F94E)

Observe: in VS Code carot and hamburger are rendered in b/w whereas the softball is rendered in color.

If I enter the same characters in VI running in the terminal app all three emojis are rendered in color:

2020-02-25_11-43-19

(left is VS Code, right is terminal app).

microsoft/vscode

Answer questions Kedstar99

Hello,

I know this probably isn't helpful as you probably have a better/simpler solution. I found this issue seems to occur on several Linux programs by default. I think it's rather an issue on linux's default font handling.

For example, below is an example image from running systemd-analyze security on default konsole, yakuake and terminator.

Screenshot_20200503_233909

The problem in this case is that most of the monospace fonts I saw were only supporting up to Unicode 6.

This problem I think also occurs over here in VSCode, except unsupported emojis seem to get displayed as coloured emojis. Hence the mixture of b/w and colored in this case.

image

In theory this could be solved by switching to noto-color-emoji but unfortunately that seemed to also convert numeral characters into emojis as well.

My actual solution that seems to fix the problem in all of the terminals and vscode was to apply the font config here.

https://gist.github.com/IgnoredAmbience/7c99b6cf9a8b73c9312a71d1209d9bbb#gistcomment-2919833

image

I know this probably isn't the best solution and you probably would like a solution which works within vscode. It does seem to me that there is a lot of complexity involved with this binding and font config though. https://www.freedesktop.org/software/fontconfig/fontconfig-user.html

In theory, this should be a relatively simple adjustment in the snap versions at least. What do you think about that as maybe a short-term solution to this problem?

EDIT: Here is the above solution being used to show the carrot, hamburger and softball. image

useful!

Related questions

the terminal process terminated with exit code #259 hot 7
The terminal shell CWD "/c:/User..." does not exist - vscode hot 4
Bad message: Cannot launch program 'c:\...'; setting the 'outFiles' attribute might help. hot 3
Show offending file path, when "Tokenization is skipped for long lines for performance reasons. The length of a long line can be configured via `editor.maxTokenizationLineLength`." hot 3
XHR Failed on trying to install plugins via Visual Studio code hot 2
format code alt + shift + f hot 2
Corrupt ZIP: end of central directory record signature not found hot 2
"Initializing JS/TS Language Features" appears every time I open a JS file hot 2
Logitech MX Master: Horizontal scrolling via scroll wheel doesn't work hot 2
VS Code doesn't read Git packed-refs hot 2
Is it possible to use wsl bash php for php.validate.executablePath hot 2
Virtual Space is not implemented. hot 2
EISDIR: illegal operation on a directory, read error when trying to REMOTE-SSH hot 2
Failed to save ...: The content of the file is newer. Please compare your version with the file contents. hot 2
Insiders - We cannot connect to the Extensions Marketplace hot 2
Github User Rank List