dmd font 4x7

The Dot Matrix Display (DMD) is a 32x16 array of high-brightness LEDs for visually striking effects. [Product Page]
Post Reply
sniper100
Posts: 1
Joined: Fri Jan 05, 2018 4:40 pm

dmd font 4x7

Post by sniper100 » Fri Jan 05, 2018 4:46 pm

I tried to create a font for P10 matrix with GLCD fontcreator2. The result doesn't work.
Please help.
Attachments
fonts4x7.h
(5.19 KiB) Downloaded 2 times

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

Re: dmd font 4x7

Post by stryker » Sat Jan 06, 2018 6:17 am

I had a quick look at the other fixed width font that's included with the DMD library, the System5x7 and, like yours the size is defined as 0,0

Code: Select all

    0x0, 0x0, // size
but it has the interesting comment after the same data as follows

Code: Select all

    0x0, 0x0, // size of zero indicates fixed width font, actual length is width * height
and rather than including the width table for every character as yours does, it skips that and just has this comment

Code: Select all

    // Fixed width; char width table not used !!!!
which leads me to think yours won't work until you remove this block

Code: Select all

    // char widths
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 
as that will be read as the first character data.

Hope that is the cause. Cheers ! Geoff

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests