Loosing my mind with a stupid font issue!

So, with the new Forerunner 965 454x454 watch, I created two new fonts called titillium-web-bold-128-tall and titillium-web-light-128-tall. Except, When creating the 'light' one, I didn't have Titillium Web SemiBold selected as a font so the font looked different on the simulated device. Fixed my error, exported the new bitmap font and configuration and looking at the .PNG file (that the .fnt file points to), it's looks exactly like the 'Bold' one, except 'lighter' now. Thing is, the simulator persists on displaying the old font! I've rebooted, I've reset the simulator settings, clean its data, deleted the AppData\Local\Temp\com.garmin.connectiq\GARMIN\APPS folder, etc, to no avail. It still uses the old font that is nowhere in the project anymore! I'm at lost here.

Is there a way to clean and recompile a project using Monkey C in Visual Studio?

  • Plots thicken. I've saved the font under a different name, adjusted the font.xml file accordingly, deleted the all the titillium-web-light-128-tall.* files and relaunched the simulator. Now, the font is displaying correctly.

    I've resaved the font under its original name, readjusted the font.xml file and the old wrong font is showing again in the simulator lol.

  • Well, duh, the Monkey C: Clean Project was not within my most recent commands but was there. I ran it and it's fine now

  • Unlike the source code, custom fonts do not recompile each time we rebuild the project via Ctrl+F5. Manual removing of the "bin" folder before this command also forces to rebuild all the resources

  • It sounds like there may be some caching going on that is causing the simulator to persist in using the old font. Here are a few steps you can try to clear the cache and recompile the project using Monkey C in Visual Studio:

    1. In Visual Studio, go to Build > Clean Solution. This will clean all the intermediate build files.

    2. Close the simulator and Visual Studio.

    3. Navigate to the folder where your project is located.

    4. Delete the "bin" and "obj" folders. These folders contain the compiled files and cache.

    5. Open Visual Studio and rebuild the project. This will create new intermediate build files.

    6. Open the simulator and try running your project again.

    If the issue persists, you may need to try some additional steps such as clearing the cache on the device itself, or resetting the device to its factory settings. You can also reach out to the Garmin Connect IQ developer community for further assistance.

  • Thanks. Monkey C: Clean Project was enough to clear the fonts problem.

  • I have the same problem.
    With the Monkey C: Clean Project command the problem is solved, but I have to run the command every time I change a font.
    This only happens since I updated to SDK 4.2.1.
    With SDK 4.1.7 and earlier everything worked fine.