Hacker News new | ask | show | jobs
by cuken 1583 days ago
Looks like the flag at the bottom (is it supposed to be a flag) is not working. The powered by pizza is working though!
2 comments

Odd… I’m seeing it on multiple different connections. And if the pizza’s working there’s no reason the flag shouldn’t be.

Both font awesome fonts

yeah its supposed to be a Scottish flag. What are you seeing?
I'll take "Firefox on Linux" for 600, Alex!
If anything, Firefox on Linux is more likely to get it right, as it will typically be shipped with the font Twemoji Mozilla which includes this flag. I think they don’t ship that font on macOS or Windows, and it sounds like at least the default emoji font stack for Windows doesn’t support this flag.
I get a Black Flag instead (https://i.imgur.com/j7vYE9M.png on Brave+Firefox/Linux)
If you’re wondering why it would appear so:

Most flags are made of two regional indicator symbols, like this for the United Kingdom which has ISO 3166 code GB:

  U+1F1EC REGIONAL INDICATOR SYMBOL LETTER G
  U+1F1E7 REGIONAL INDICATOR SYMBOL LETTER B
If the font has flags, it should render this as a Union Jack, but if it doesn’t, it should render something along the lines of “GB” (which, frankly, is generally more useful if you try using flags without labels).

But Scotland has the ISO 3166 code GB-SCT, a format the regional indicators weren’t designed to cope with (for better or for worse), so it uses a different encoding technique and is comprised of the following sequence of seven scalar values:

  U+1F3F4 WAVING BLACK FLAG
  U+E0067 TAG LATIN SMALL LETTER G
  U+E0062 TAG LATIN SMALL LETTER B
  U+E0073 TAG LATIN SMALL LETTER S
  U+E0063 TAG LATIN SMALL LETTER C
  U+E0074 TAG LATIN SMALL LETTER T
  U+E007F CANCEL TAG
As you observe, this has a significantly worse fallback behaviour: the tag characters are non-printing, so you get just a black flag.
Windows + Firefox/Chrome and Edge. All have a black flag for me.
So odd that the pizza works and the flag doesn't. Same fontawesome package.
This is not coming from Font Awesome; you’re using regular emoji, and depending on the host being able to render it. U+1F355 SLICE OF PIZZA has been around since 2010, but the Scotland flag sequence is from 2017 and some platforms have been deliberately not including country flags because they are generally not necessary (though the Scottish flag suffers more than most because of its composition, see my other nearby comment) and they are the subject of a few international disputes (e.g. PRC objects to Taiwan’s flag being included) and so it’s easier to just keep out of it all.
haha!