Custom emoji sets are not properly displayed #12381

Closed
opened 2026-01-31 03:14:08 +00:00 by claunia · 8 comments
Owner

Originally created by @shny-scott on GitHub (Feb 3, 2021).

Environment

Windows build number: 10.0.19042.0
Windows Terminal version (if applicable): 1.5.10271.0

Steps to reproduce

  1. Replace the emoji in the system fonts with another set (in this case, done with https://github.com/eosrei/twemoji-color-font/)
  2. Attempt to display an emoji in the terminal.

Expected behavior

The emoji should be properly rendered like in other applications.
Example screenshot from the built-in Windows emoji picker:

image

Actual behavior

The emoji just shows as a "missing character" box.
Screenshot with Terminal-Icons (places appropriate emojis to the left of file names) and (edit: turns out those aren't actually emojis) an administrator Powershell (places to the left of the command line):

image

Originally created by @shny-scott on GitHub (Feb 3, 2021). # Environment ```none Windows build number: 10.0.19042.0 Windows Terminal version (if applicable): 1.5.10271.0 ``` # Steps to reproduce 1. Replace the emoji in the system fonts with another set (in this case, done with https://github.com/eosrei/twemoji-color-font/) 2. Attempt to display an emoji in the terminal. # Expected behavior The emoji should be properly rendered like in other applications. Example screenshot from the built-in Windows emoji picker: ![image](https://user-images.githubusercontent.com/33875157/106690260-56ba3900-6586-11eb-8d8b-34b6ce7aa94f.png) # Actual behavior The emoji just shows as a "missing character" box. Screenshot with ~~Terminal-Icons (places appropriate emojis to the left of file names) and~~ (edit: turns out those aren't actually emojis) an administrator Powershell (places ⚡ to the left of the command line): ![image](https://user-images.githubusercontent.com/33875157/106690191-38543d80-6586-11eb-8251-b0868094387e.png)
claunia added the Resolution-By-DesignNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 03:14:08 +00:00
Author
Owner

@DHowett commented on GitHub (Feb 3, 2021):

Replacing a system font, you’re already in unsupported territory. Still, we should support SVG fonts.

@DHowett commented on GitHub (Feb 3, 2021): Replacing a system font, you’re already in unsupported territory. Still, we should support SVG fonts.
Author
Owner

@DHowett commented on GitHub (Feb 3, 2021):

Actually... What are those emoji supposed to be next to the filenames? I think they’re supposed to be NerdFont characters, not emoji.

@DHowett commented on GitHub (Feb 3, 2021): Actually... What are those emoji supposed to be next to the filenames? I think they’re supposed to be NerdFont characters, _not_ emoji.
Author
Owner

@shny-scott commented on GitHub (Feb 3, 2021):

I wasn't aware that NerdFont characters were used for terminal-icons, but I know the top left is definitely an emoji because it used to display properly. And yeah, I'm not a fan of having to patch system fonts, but unfortunately there isn't a better way to do emoji set replacement.

@shny-scott commented on GitHub (Feb 3, 2021): I wasn't aware that NerdFont characters were used for terminal-icons, but I know the top left ⚡ is definitely an emoji because it used to display properly. And yeah, I'm not a fan of having to patch system fonts, but unfortunately there isn't a better way to do emoji set replacement.
Author
Owner

@DHowett commented on GitHub (Feb 3, 2021):

Would you mind dumping the charcter code for that lightning bolt? Copy it to your clipboard (directly out of Terminal) and run [int]((Get-Clipboard)[0]) (PowerShell 6+)

@DHowett commented on GitHub (Feb 3, 2021): Would you mind dumping the charcter code for that lightning bolt? Copy it to your clipboard (directly out of Terminal) and run `[int]((Get-Clipboard)[0])` (PowerShell 6+)
Author
Owner

@shny-scott commented on GitHub (Feb 3, 2021):

I don't have PS 6, but running it in 5.1.19041.610 gives the output 61671.

@shny-scott commented on GitHub (Feb 3, 2021): I don't have PS 6, but running it in 5.1.19041.610 gives the output 61671.
Author
Owner

@DHowett commented on GitHub (Feb 3, 2021):

Sorry, that's another codepoint in the private use range (which NerdFonts uses to add all these fun glyphs.)

@DHowett commented on GitHub (Feb 3, 2021): Sorry, that's another codepoint in the private use range (which NerdFonts uses to add all these fun glyphs.)
Author
Owner

@DHowett commented on GitHub (Feb 3, 2021):

Best choice is gonna be to find a nerdfont version of the font you're using or the font you like -- it'll look a lot better!

@DHowett commented on GitHub (Feb 3, 2021): Best choice is gonna be to find a nerdfont version of the font you're using or the font you like -- it'll look a lot better!
Author
Owner

@shny-scott commented on GitHub (Feb 3, 2021):

...then why did it work before? I was just using the default font. Guess I have more troubleshooting to do...

@shny-scott commented on GitHub (Feb 3, 2021): ...then why did it work before? I was just using the default font. Guess I have more troubleshooting to do...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12381