Skip to content

Twemoji on packages #123

Answered by favna
igorwastaken asked this question in Ideas
Sep 5, 2021 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Imagine using Mee6 and not Skyra, FeelsBadMan /s

Twemojis can be referenced by SVG such as https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f522.svg for 🔢. Because it's an SVG you can then pass your own width and height and you should be able to fit it along the text I think.

In HTML:

<img src="https://raw.githubusercontent.com/twitter/twemoji/master/assets/svg/1f522.svg" width="800" height="200">

Edit: As for how to get the codepoint, there are 2 ways.

Through JS

If you can copy the emoji (i.e. from Emojipedia) you can execute this:

[..."🔢"].map(c => c.codePointAt(0).toString(16));

Replace 🔢 with your emoji.

Through the web
Follow this:

15-19-14_05-09-2021_.pn.mp4

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@igorwastaken
Comment options

@igorwastaken
Comment options

@favna
Comment options

favna Sep 5, 2021
Maintainer

@igorwastaken
Comment options

Answer selected by igorwastaken
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants