Live data from Hacker News

Show HN: Emojicons

emojicons.netlify.app

11–20 of 38 posts

Re: Show HN: Emojicons

#11

Ok, so I tried it as this would be a useful tool for me. When clicking download all get as plain text in my browser is this: 🐱‍👤 Am I missing something?

Looks like a valid svg to me!

Maybe the server doesn't set the content-type correctly?

Re: Show HN: Emojicons

#12
For those wondering why you'd use this when you could just use an emoji, emoji look different based on the device or browser manufacturers. If your design requires a consistent look then this can be used to create an SVG that looks the same regardless of device or browser.

Re: Show HN: Emojicons

#13

For those wondering why you'd use this when you could just use an emoji, emoji look different based on the device or browser manufacturers. If your design requires a consistent look then this can be used to create an SVG that looks the same regardless of device or browser.

That’s not what this does. This is just a simple generator for [emoji], so that you can get emoji in a format allowed for favicons.

Re: Show HN: Emojicons

#14

For those wondering why you'd use this when you could just use an emoji, emoji look different based on the device or browser manufacturers. If your design requires a consistent look then this can be used to create an SVG that looks the same regardless of device or browser.

As far as I can see, that's not what this does. The SVG this creates simply includes the emoji codepoint as a text element with a large font size. So what the user sees will still be entirely dependent on their local font.

If you want a consistent look across devices and browsers, you need an actual SVG graphic, not an SVG that renders a glyph from your default emoji font.

Re: Show HN: Emojicons

#15
post #14

For those wondering why you'd use this when you could just use an emoji, emoji look different based on the device or browser manufacturers. If your design requires a consistent look then this can be used to create an SVG that looks the same regardless of device or browser.

As far as I can see, that's not what this does. The SVG this creates simply includes the emoji codepoint as a text element with a large font size. So what the user sees will still be entirely dependent on their local font. If you want a consistent look across devices and browsers, you need an actual SVG graphic, not an SVG that renders a glyph from your default emoji font.

Ah OK. That greatly reduces my need for this service then.

Re: Show HN: Emojicons

#17
It would be good to change this:

  new Blob([svgText], {type: 'text/svg'});
To this:

  new File([svgText], 'favicon.svg', {type: 'image/svg+xml; charset=utf-8'})
This gives it a filename, restores the correct MIME type, and resolves possible encoding issues. By restoring the correct MIME type, the browser will now probably actually open it, so you may then want to mess around with an solution to trigger downloading instead of opening, but I’ll skip the implementation details of that.

In the end I’d actually go with a data: URI rather than a blob. works fine. And then it raises the question of just inlining the whole icon instead of keeping favicon.svg separate, as demonstrated by mfontani.

Re: Show HN: Emojicons

#19

Ok, so I tried it as this would be a useful tool for me. When clicking download all get as plain text in my browser is this: 🐱‍👤 Am I missing something?

That's a cat ninja emoji: https://ftfy.vercel.app/?s=%C3%B0%C5%B8%C2%90%C2%B1%C3%A2%E2...

Re: Show HN: Emojicons

#20
post #8

Neat. Makes me wonder why we can't do complex favicon design using html/css. Imagine being able to enter text and style it using layouts, fonts, colors, etc.

You can. You’ve got all of SVG except for scripting (which is disabled when SVG is loaded as an image, which happens if you use or favicons or such things), which should handle all of your complex favicon desires.

If you really want HTML, well, SVG has the tag which you can use to embed HTML (in the XML serialisation, so for once you will need to write
instead of
). But pure SVG is likely to be a better idea.

Sample markup to drop in an HTML file to get an HTML-powered “Hello, world!” favicon:

  Hello,
world!'>
Post reply on HN