Flags misrendering in the Flagada package

Hey everyone,

i am delighted to see a package such as Flagada, which has proven very valuable for a current project.
However, when compiling locally, I encounter several missing icons on flags that are not reported with the package. Is this stemming from the package or my setup?

A few examples:


1 Like

Thank you for your message @Florian_Alex and for joining the forum.

Would you please post the code that you are using that generates this issue? We call it a Minimum Working Example (MWE). Just the minimum so we can only see the non-rendering flags, stripped of everything else. Please make sure it compiles before posting.

This way, you will likely receive instant support.

3 Likes

On the Flagada page of Typst Universe there is mention of a coat of arms folder that stores some flags that are difficult to recreate with basic elements. This is in comparison to flags like the EU flag whose stars:

can be constructed or displayed from an unicode like U+2605

Since I can’t recreate your issue with the following code (locally or on the web app) I guess it is a font issue. What font did you use to create that screenshot?

This is the code I used to test. Does this create correct flags for you?

#import "@preview/flagada:1.0.1"

#set page(width: auto, height: auto, margin: 1mm)

#let flag-height = 2em
#grid(
  columns: (auto, auto),
  align: horizon,
  [Malaysia], flagada.flag-my(height: flag-height),
  [Mongolia], flagada.flag-mn(height: flag-height)
)

1 Like

If u want to use flags like any roman text, u can compose any flag with two unicode letters.

1 Like