Acknowledged
over 1 year ago

Undefined symbol ':Fonts' detected in 7.1.1

Using 7.1.1, I can't compile an app that verify the existence of a specific fonts if the font doesn't exist for that watch's resolution. That font is only present for the 416x416 and 454x454 watches. For the other watches resolution, there is no "fonts' sub-directory.

The lines that fails are:

if (Rez.Fonts has :montserrat) {
  _font_montserrat=Ui.loadResource(Rez.Fonts.montserrat);

In the resources-round-416x416\fonts and resources-round-454x454\fonts directory, the fonts.xml file has

<fonts>
  <font id="montserrat" filename="../fonts/montserrat.fnt" antialias="true" filter=" %',-_.0123456789!():?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz°ÅÍÎÖÉàáãäåæèéêëíïîðñóôöøûüžç+" />
</fonts>

As an alternative, I tried having fonts.xml with just

<fonts>
</fonts>

for the other watches resolution but it didn't work.