Including a new font

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
plito
Posts: 5
Joined: Sat Sep 23, 2017 8:24 pm

Including a new font

Post by plito » Tue Jan 09, 2018 4:32 pm

I create a new font to use it with DMD2 but on compilation says " Arial15 was not declared in this scope " . I use #include <fonts/Arial15.h> at the begin as the others fonts but it doesn´t let me compilate it. Am I missing something ? The font is in the same directory that the others. Plase somebody explain me. Thanks

User avatar
stryker
Posts: 255
Joined: Sat Jan 14, 2012 2:44 pm

Re: Including a new font

Post by stryker » Wed Jan 10, 2018 8:09 am

Hi @plito
I've always used the alternative #include syntax

Code: Select all

#include "Arial_black_16.h"
so perhaps try

Code: Select all

#include "fonts/Arial15.h"
I just checked now, and even in our newer projects where I use the quoted syntax and DMD2, our custom fonts contained within the older DMD library directory are found and used okay by the IDE. Reading the C++ reference here I can't think of any satisfactory reason why one way would work over the other, just that the quoted syntax is the way I've always followed.

If that doesn't fix it, as I suspect, can you include your custom font file here to make sure it's not something fractured in there that's stopping it?

Geoff

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests