News for hackers. Stuff that matters.
Re:Country Flags in SVG by rbut on Friday February 04, 2022 @07:21AM (#30205855)
Or you could generate the emoji symbol for the flag you want to display:

  country_code = 'AU'
  c1, c2 = map(lambda x: ord(x) + 0x1f1a5, country_code)
  flag = chr(c1) + chr(c2)
Re:Country Flags in SVG by TonyTrapp on Friday February 04, 2022 @07:25AM (#30205899)
Which assumes that the user has a font installed containing all required emojis. It's much safer to assume that their browser can render SVGs.
Re:Country Flags in SVG by rbut on Friday February 04, 2022 @07:31AM (#30205952)
Which is pretty much every current OS and device except Windows, but yes. Microsoft holding us back again.
Re:Country Flags in SVG by julianwachholz on Friday February 04, 2022 @09:28AM (#30207117)
I still assume political reasons and it's a lose lose situation for MS. E.g. they either include Taiwan's flag and lose China's approval, or they don't and get a huge backlash from everywhere else.

PS: Firefox on Windows uses its own emoji font "Twemoji Mozilla" to display flags.

Re:Country Flags in SVG by otrahuevada on Friday February 04, 2022 @08:27AM (#30206489)
No font in Google fonts does, for instance. At least from their own little demonstrator. There is https://github.com/googlefonts/noto-emoji Noto Emoji which can render the flags but you need to build it yourself