stidges / country-flags

A small package to convert a country code to the corresponding country flag emoji
MIT License
30 stars 3 forks source link

The plugin is showing country code instead of Flag Emoji #1

Closed sooxt98 closed 3 years ago

stidges commented 4 years ago

Can you give more information about what country code you are trying to use?

sooxt98 commented 4 years ago

MY, I think the problem is related to production settings, it works fine on local

stidges commented 4 years ago

I cannot reproduce this on my machine either, it's not showing up in the browser on production?

sooxt98 commented 4 years ago

image

stidges commented 4 years ago

What font stack are you using? It may be that the fonts don't support emoji

sooxt98 commented 4 years ago

I tried on Mac iOS and windows, all can’t

On Mon, 20 Apr 2020 at 5:29 PM, Stidges notifications@github.com wrote:

What font stack are you using? It may be that the fonts don't support emoji

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/stidges/country-flags/issues/1#issuecomment-616426980, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGCEC4ZPXDQECISZWVLEH3RNQIXBANCNFSM4MLVVIJQ .

stidges commented 4 years ago

It depends on the font you are using in your CSS styles, if that font does not support emoji it won't show up

sooxt98 commented 4 years ago

ahhhh i think is just doesnt work on windows, do you know any alternative ways to solve this?

stidges commented 4 years ago

Make sure you have the system emoji fonts in your font stack as fallback in CSS, e.g.

html {
  font-family: "your font stack...", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
sooxt98 commented 4 years ago

image

i found this, Microsft dont support Country flag emojis~