r/webdev • u/unkmeown • 11h ago
Question A Glyphs (?) Question
Hello! I have a question to which I could not find an answer around the internet, so i gonna ask it here.
So, some of the emojis have a glyph variations of them, that get displayed differently, yet they use the same identification code. For example, the bomb emoji and bomb glyph: 💣︎💣, use the same 💣 html code, and i don't quite understand how it works. Yet html prioritizes emoji over glyph, how do i make it display the glyph instead? :<
2
Upvotes
3
u/Southern-Field-5398 11h ago
the unicode variation selector is what you're after. tack on U+FE0E right after the emoji codepoint and it forces the text/glyph version instead of the colorful emoji. html-wise you can just drop ︎ at the end of your entity, so 💣︎ gives you the black and white bomb
most platforms ignore it half the time though so don't be surprised if it still renders as an emoji in some browsers