Skip to content
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

Emojis display #93

Closed
grolongo opened this issue Feb 15, 2018 · 9 comments
Closed

Emojis display #93

grolongo opened this issue Feb 15, 2018 · 9 comments

Comments

@grolongo
Copy link

Hi, is it possible to show me a screenshot of how emojis should be displayed with the last version?
Here is how they are shown after I updated to 1.8.4:

emojiwsltty

For info they are displayed the same as with previous versions so I don't know if I'm missing something in my config file (couldn't find anything in the readme though).

@grolongo grolongo changed the title Emoji display Emojis display Feb 15, 2018
@mintty
Copy link
Owner

mintty commented Feb 15, 2018

These are only the emoji symbols from the font.
For graphic emoji display, see the mintty home page for screenshots, and the mintty wiki for setup instructions. Both are linked from the last section of the wsltty project page; I guess I should add those links in a more visible place.

@grolongo
Copy link
Author

I indeed missed quiet a few steps to have this working. Now all emojis are showing as expected, even in (neo)vim (useful for visual grepping linter errors and some info in the statusbar for my case).

For reference this is what I did (more infos in the mintty wiki & manual):

  1. Downloaded https://github.com/iamcal/emoji-data/archive/v4.0.3.zip
  2. Extracted folder img-apple-64 into %APPDATA%\wsltty\emojis
  3. Renamed folder img-apple-64 as apple
  4. Edited %APPDATA%\wsltty\config by adding two lines: Charwidth=unicode & Emojis=apple

onpoint

For you @mintty, do you think we could avoid downloading a set of emojis by using the ones already available in Windows (couldn't find where they were located in the system though)?

@mintty
Copy link
Owner

mintty commented Feb 16, 2018

For you @mintty, do you think we could avoid downloading a set of emojis by using the ones already available in Windows (couldn't find where they were located in the system though)?

That's the point. If you find them, sure...

@grolongo
Copy link
Author

One different way would be to use Segoe UI Emoji font as fallback like in Visual Studio Code.
Terminal and iTerm2 on macOS use this method too (with Apple Color Emoji font).

Not sure if that could work with mintty as it's a different approach than yours.

@mintty
Copy link
Owner

mintty commented Feb 16, 2018

No, mintty needs access to the individual emoji graphics. If you know how to pull them out of the font, that might help. But the Segoe font does not work with the normal Windows API, it's not even installable here.

@mintty
Copy link
Owner

mintty commented Feb 16, 2018

it's not even installable here.

No, that was the NotoColorEmoji font. Anyway, access to an installed font with coloured glyphs is not possible in the API that mintty uses.

@grolongo
Copy link
Author

OK so I've found some ruby extractor script (https://github.com/tmm1/emoji-extractor) for the Apple Color Emoji font and tried to change the code to make it work for Segoe UI Emoji font under WSL but without success.

I'll try to see if there is anything else that could make it work in my free time.

Since my original question has been resolved you can close this issue or let me do it later.

@mintty
Copy link
Owner

mintty commented Feb 17, 2018

With seguiemj.ttf, this script just says "Could not find the font file. Exiting."
With NotoColorEmoji.ttf, it says that too, but then does in fact extract png files.
However, the result is quite useless as the files are numbered sequentially (1.png ... 2419.png), so they cannot be mapped to the Unicode emojis. It seems this script is crap.

@mintty
Copy link
Owner

mintty commented Mar 8, 2018

Closing this generic issue.
To propose other ways to access emoji resources (Windows built-in, font...), please open a fresh issue (preferably with technical hints).

@mintty mintty closed this as completed Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants