Skip to content
Projetos

Chasmical/flag-emojis-for-windows

Ver no GitHub

Sobre

This font adds flag emojis to Windows 8-11, while keeping all Win11's original emojis! 🇬🇧🧑‍💻🇯🇵😎🇰🇷💀🇨🇳🤖🇫🇷✨🇪🇸🐛🇮🇹

Design e mídia

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+5
em 15 dias
+11
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Add Country Flag Emojis to Windows 8-11

This font adds country flag emojis to Windows, while keeping all Win11's original emojis! 🇬🇧🧑‍💻🇯🇵😎🇰🇷💀🇨🇳🤖🇫🇷✨🇪🇸🐛🇮🇹

Unlike literally any other platform or OS, Windows never had flag emojis, and that always irked me a little bit. Having to guess what flag someone else is trying to send by just two letters isn't a great user experience, you know. And I always just kinda sighed at it, helplessly.

But not today... Today I woke up, and the absence of flag emojis in Windows has triggered me like never before, and so I've spent over 14 hours hyperfocused on this task of bringing flag emojis to Windows (without replacing all the emojis, that is, like some other projects did). Upd: I have since spent a hundred more hours or so on this project.

And now you too can say "No!" to Windows, "I want the flag emojis that everyone else has!", download and install this font, restart your PC, and finally get to enjoy the full emoji experience on Windows!

 

This font is based on Segoe UI Emoji v1.70 (3D Fluent 17.0; Win11 26H2; 2026-08-27) and contains 262 flags from Twemoji v17.0.3 (jdecked/twemoji@b6b55fe 2026-06-01). You can build it yourself, if you'd like (see the "How to build it yourself" section in the end).

Table of contents

  1. Installation
  2. Screenshots
  3. Similar projects & comparison
  4. How to build it yourself

Also, you can read my two blog posts on this project:

Installation

Download the font and install it for all users! Restart your PC to apply changes.

"Install for all users" (recommended) will attempt to render country flags in the system and many other apps too.

Regular "Install" will only affect a few certain apps: Chromium-based browsers (Chrome, Opera, Vivaldi, etc), and Electron-based apps (Discord, VS Code, etc), so if that's enough for you, you can do this type of install.

Or, alternatively, run this command in PowerShell (Admin):

irm https://chsm.dev/get-flag-emojis | iex

The installer script compares your font's SHA256 checksum with the latest one before downloading, and it also uses less traffic because it downloads the font in a ZIP archive. It also logs errors, which is nice.

If both installation methods fail, check the Troubleshooting Guide!

Uninstalling for all users

Open Terminal (PowerShell) and run this command to recover the original Segoe UI Emoji file:

Copy-Item "C:\Windows\Fonts\seguiemj.ttf" "~\Desktop"

This will copy the original font file to your desktop. Install it with "Install for all users", and then restart your PC.

Uninstalling for this user

Simply go to "Settings > Personalization > Fonts", find and click on "Segoe UI Emoji", select the font file with the longest path and press "Uninstall". You should still have the original font file installed system-wide in there.

Screenshots

It works perfectly in Chromium-based browsers (Chrome, Opera, Vivaldi, etc):

As well as all Electron-based apps (Discord, VS Code, etc):

And most non-system apps too (e.g. Notepad++):

It also works in UWP apps (most of modern system UI):

In a Microsoft Word document:

Fonts preview in "Settings > Personalizations > Fonts":

In the system Start menu:

In the system task bar:

System Limitations

Country flags are uncolored in the Explorer, but so are the Fluent 3D emojis. So it's not something that any font can fix, — it's a limitation of the system itself. Maybe in future versions Windows will be able to render emojis consistently everywhere, but at the moment, it's the best that can be done.

Similar projects & comparison

Here are the emojis that you get in all projects, for comparison:

I personally prefer the original Fluent 3D set. A touch of 3D shading looks really nice and it brings some life to the emojis. Fluent 3D's people emojis have actual eyes, while others' have creepy dot eyes and blank stares. Also, as someone with entomophobia, Fluent 3D's bug emoji is the easiest to look at, and as a developer I have to look at it pretty often. And look at Fluent 3D's animals! So cute!

And here's a comparison of flags as well:

I decided to use Twitter's flag emojis, since Noto's wavy ones just look weird — straight lines become curves, circles become ovals, there's a weird gray glow around the flags, and they also don't downscale well.

How to build it yourself

The project's build process is pretty complicated and takes a long time (full run = 5 mins on 20-core CPU), so I put it all in a Makefile, to cache and reuse intermediate results. If you're on Windows, you'll need WSL to run Make and all the Unix commands.

Prerequisites

[!NOTE] If you're on a Unix OS natively, you can run this to install all dependencies:

sudo apt update
sudo apt install make git dotnet python3 nodejs npm inkscape imagemagick potrace p7zip-full
sudo pip install nanoemoji fonttools[lxml]
sudo npm install -g svgo

HarfBuzz needs to be built from sources. You'll also need to get build/seguiemj.ttf from somewhere.

Commands

After installing everything, you can run these Make commands (if you're on Windows, run them in WSL):

  • make build (default) builds the font (build/merged.ttf).

  • make package builds and then copies to Segoe.UI.Emoji.with.Twemoji.Flags.{ttf,zip}.

  • make test-vars prints the commands for the tools that will be used.

  • make test renders PNGs with all of the flags (build/tests/; configurable make test FLAGS_PER_LINE=8).

  • make clean cleans the build cache (simply rm -rf build).

  • make rebuild is a combo of clean followed by build.

Notes

The C# merge script I wrote is a bit janky and disorganized, since I've had to try so many different things to finally get it to work... And it probably won't work with any other fonts, despite all my attempts to keep it as generic as possible.

If you want to add emojis to Segoe UI Emoji from some other font, here's a list of resources that I found useful:

  • fontTools ttx can decompile TTF into a readable and editable XML, and recompiles it back losslessly.
  • OpenType's spec on Microsoft Learn explains the overall structure of a TTF file and its tables, and what different type ids mean, and etc.
  • GSUB docs on FontForge clarifies some stuff about substitution lookups.
  • HarfBuzz brought the project to the finish line! It not only renders font characters into the terminal, but also shows the entire textshaping process (run with option -V). I was stuck for a while on script and feature switches, not realizing that they disable rendering the ligatures in some places.

You can also read my two blog posts explaining some of the details:

Explore projetos relacionados

Carregando…