-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Cannot display emoji βοΈ, πββοΈ #32840
Comments
The style is decided by the browser and since we are using Chromium under the hood, it's Google's Emoji. |
This may not be how it really works, but from my understanding this is how Windows displays emoji as a fallback when no specific "emoji font" is used. This can be fixed by adding Thus, building off the default setting, |
@rianadon many thanks! |
@alexandrudima I wouldn't call this an issue with something upstream since there is a solution to solve this in Electron/Chromium - add all the emoji fonts to the font stack. For example GitHub uses the emoji fonts for both macOS and Windows in their CSS (along with the native system fonts): The fix to this would be to edit the default by appending Segoe UI Emoji and possibly the Apple emoji font too. |
I see this too. The issue goes away when I change the font to only This probably isn't going to have an easy fix, as while putting the emoji font first fixes the problem, it doesn't allow for the customization of the text font (as the emoji font seems to have glyphs for text). One solution would be to do as GitHub does and enclose emoji inside a separate element with its own font-family, but doing so would require a change in Monaco's syntax highlighting. |
@SylannBin good find! Would you happen to know what font tilix is using? Also what happens if you add |
@rianadon Adding the 'Noto Color Emoji' font family makes the above emoji properly displayed both in the editor and the integrated terminal. However if I put the font at the end of the list, it works perfectly. Apparently, the ability to print the emojis properly in tilix is not related to Tilix itlsef but to the version of GTK that is being used. Color emojis work in ubuntu 18.04 but not in 17.10, it appears it has been added with gtk 3.22. source I've searched a bit, in the gtk repo, it seems the feature was handled by cairo for several years already, and was fixed very recently in gtk, but this is quite obscure to me right now and I couldn't figure out which commits introduced the fix. |
Great to hear it works if you put the font at the end! Also, I'm probably going to submit a PR soon to change the default font-family to include emoji. For my later reference (and anyone looking to make emoji work on their system), these defaults would be:
|
I confirm that this worked for me on Ubuntu. "editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback', 'Noto Color Emoji'" |
same here |
On MacOs, "Menlo" is actually breaking some emojis for me. I've installed the free Robot font from Google: https://fonts.google.com/specimen/Roboto+Mono and changed my
And it's a pretty acceptable alternative. |
2022 thanks to @alexdima ! Now everything works like expected. π |
I have the same issue on Windows 10 using the Windows Emoji keyboard. |
Might you be right, I have my vim extension also enabled. Showing the same results never tried toggling it, let might this is an issue with the vim extension |
here is the issue that was opened in VsCodeVim/Vim github |
I'm using VS Code Version: 1.70.0 (Universal) I'm neither using the Menlo font family nor Vim and some emojis appear in b&w instead of colour such as :red_heart: Running the following Python script:
Renders: VS Code font family settings:
|
β |
It is easy to understand what emojis vsCode can show: All the emojis that are shown in color on this page are also shown in color in vsCode example of uncolored emoji: |
I'm using emojis in my vs code integrated terminal and you can add these settings to your settings.json file to see the emojis "terminal.integrated.cursorStyle": "line", |
Ubuntu 22.04 / Gnome here ; recommended option After trying various combinations, this one worked:
Poke @yzhang-gh if you wish to update the top message π |
βΉ β
Using inlang config file at /Users/felixhaberle/Desktop/git/inlang/source-code/sdk-js/src/adapter-sveltekit/examples/test-app/inlang.config.js
βΉ π Found 3 languages with a total of 6 messages.
βΉ π Translating to 2 languages. [de, es]
βΉ πͺπΈ Translated message welcome to Bienvenido a inlang
βΉ πͺπΈ Translated message machine-test to Esta es una prueba de mΓ‘quina.
βΉ πͺπΈ Translated message already-existing to Esta clave existe y es una prueba. Just to let you know: The flags doesn't display correctly with the default settings. |
It is perfect for mac user, like β»οΈ can't display the color. |
Thank you, you are save my life! |
|
Steps to Reproduce:
Expected
on Windows 10
Workaround. Append a color emoji font to the editor font family e.g.:
Consolas, 'Courier New', monospace, 'Segoe UI Emoji'
Menlo, Monaco, 'Courier New', monospace, 'Apple Color Emoji'
'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback', 'Noto Color Emoji'
e.g. on macOS
"editor.fontFamily": "Roboto Mono, 'Apple Color Emoji'",
or for a cross-platform solution:
"editor.fontFamily": "Consolas, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji'"
The text was updated successfully, but these errors were encountered: