FONT Conversion Error

When converting a ttf font, when I add the file to my program and use LV_FONT_DECLARE(#name) I get this compile error.:-

|expected identifier or ‘(’ before numeric constant|GOTHAM_56.c
image

STM32L4R5ZITx

My program will not compile

I expect the program to compile and the new font be available

Why the # in the name?
You should LV_FONT_DECLARE(GOTHAM_56)

Hi yes, that is how I have declared it.

The error is highlighted around this:-

#ifndef GOTHAM_56
#define GOTHAM_56 1
#endif

Do the built-in fonts work? They work the same way.

Hi,
Apologies, I solved this, it was to do with my compiler.

Please mark as closed and thanks for your attention on this :smile:

No problem! :slight_smile: