Closed Spomky closed 5 years ago
You have to include header file with structure's definition. There is a strange way of programming in Arduion's area...
Examples/_Energia_IDE/renderTextExample3/renderTextExample3.ino :
#include <SPI.h>
#include <RA8875.h>
#include "fonts/akashi_36.c"
RA8875.h:
#include "_settings/font.h"
_settings/font.h:
typedef struct ... tImage;
Thank you for the quick reply. I’ve already included these header files
#include <SPI.h>
#include <RA8875.h>
#include "gilles.c"
It works fine using the fonts in the fonts
folder, but not with that one I created.
gilles.c
code is as follow:
I think this because you are trying compile font's source file itself. But content of this file compiled inside other file:
#include <SPI.h>
#include <RA8875.h>
#include "gilles.c"
This is a very common mistake in the world of Arduino: Problems with Bitmaps on TFT Display using GFX Library
OK, I will read this thread.
I noticed that my file does not have any __PRGMTAG_
definition.
I am wondering if I missed an option during the conversion of the font…
All options are applied when font converted with right template file.
OK looks like the template was not correctly loaded (even if I quit and run the software again). Sorry for the noise. Compilation without any error now. Regards.
Hi,
I created a custom font using the wiki page step by step tutorial. I have a .c file that contains my font, but when I try to use it, I have the following compilation errors:
Any idea?