You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some Unicode characters (emojis) are b/w and others are colored #91357
*duplicateIssue identified as a duplicate of another issue(s)bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to ElectronterminalGeneral terminal issues that don't fall under another labelupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-linkedThis is an upstream issue that has been reported upstream
I always thought this was related to fonts, not sure we will be able to fix as I tell the canvas to draw the text and sometimes they get drawn as lofi.
Might be related to #32840. It is originally about the editor but seems to be the same problem and people are also discussing the terminal behavior there.
Where this._optionsService.options.fontFamily is whatever is configured in vscode's terminal.integrated.fontFamily (uses editor.fontFamily if it's not set).
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.
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.
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.
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.
If there's a way to fix it using the font tools given to us from within a browser then we could fix it, I (and probably most users) don't want VS Code messing with config files like fontconfig.
*duplicateIssue identified as a duplicate of another issue(s)bugIssue identified by VS Code Team member as probable bugelectronIssues and items related to ElectronterminalGeneral terminal issues that don't fall under another labelupstreamIssue identified as 'upstream' component related (exists outside of VS Code)upstream-issue-linkedThis is an upstream issue that has been reported upstream
Activity
stevencl commentedon Feb 25, 2020
Here's another one that shows up black and white 🗣 (U+1F5E3)
Tyriar commentedon Apr 6, 2020
I always thought this was related to fonts, not sure we will be able to fix as I tell the canvas to draw the text and sometimes they get drawn as lofi.
fmeyertoens commentedon Apr 9, 2020
The reason might be that some emojis are displayed in text style by default instead of emoji-style. The variation selector Unicode block (U+FE0F) can be added to those emojis to indicate that it should be displayed in emoji-style.
The gear emoji for instance should be inserted as U+2699, U+FE0F.
https://emojipedia.org/variation-selector-16/
https://en.wikipedia.org/wiki/Variation_Selectors_%28Unicode_block%29
(I somehow can't connect to unicode.org to find the definitive source)
Tyriar commentedon Apr 9, 2020
Fabian Meyertöns (@fmeyertoens) sounds promising, created upstream issue xtermjs/xterm.js#2823
fmeyertoens commentedon Apr 10, 2020
Might be related to #32840. It is originally about the editor but seems to be the same problem and people are also discussing the terminal behavior there.
fmeyertoens commentedon Apr 14, 2020
After some research I am quite sure now that the variation selector is not the issue here because the emojis mentioned in the beginning
shouldn't even have a text presentation and should be presented as emoji by default. So the emoji presentation selector (U+FE0F) has no effect on them. (See https://www.unicode.org/Public/13.0.0/ucd/emoji/emoji-data.txt and https://unicode.org/emoji/charts/emoji-style.html)
This does seem to be a font (fallback) issue. The default terminal font has the emoji characters (although in black&white) and so it doesn't fall back to the colored emoji font.
If VS Code and the terminal app use the same fonts then it could be that the terminal app prioritizes the emoji font for emoji characters.
If the speaking head appears as on github (black&gray) then it is already the correct 'colored' emoji version of it.
Tyriar commentedon Apr 14, 2020
For rendererType = canvas (the default) this is the font that's given to the canvas context to draw:
https://github.com/xtermjs/xterm.js/blob/f0c518a13471bbc4890905a076b292d2d0a9f63c/src/browser/renderer/BaseRenderLayer.ts#L390
Where
this._optionsService.options.fontFamilyis whatever is configured in vscode'sterminal.integrated.fontFamily(useseditor.fontFamilyif it's not set).Kedstar99 commentedon May 3, 2020
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.
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.
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
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.
Kedstar99 commentedon May 19, 2020
Hello Daniel Imms (@Tyriar),
Sorry for disturbing, I was just curious about your thoughts about the above observations.
Kind regards,
Krish
Tyriar commentedon Jun 8, 2020
Krish De Souza (@Kedstar99) all dealing with fontconfig is hidden from us as it's within Chromium, not sure what we can do here from inside vscode.
Kedstar99 commentedon Jun 9, 2020
Hi Daniel Imms (@Tyriar),
Thanks for replying. I was just a little curious about how this issue was being tackled.
I see this issue as a user config thing adjustable via fontconfig. However, if this is being solved within vscode that is fine too I guess.
Kind regards,
Krish
Tyriar commentedon Jun 11, 2020
If there's a way to fix it using the font tools given to us from within a browser then we could fix it, I (and probably most users) don't want VS Code messing with config files like fontconfig.
Tyriar commentedon Oct 12, 2021
/duplicate #32840