Skip to content

Change of Font Size #18

@nmiloni

Description

@nmiloni

I am trying to adapt the existing font examples provided by Aaron Liddiment so as to have a 7 pixel wide and 8 pixel high font. Have read

Aaron Liddiment's instructions about the Font Header File Layout
https://github.com/AaronLiddiment/LEDText/wiki/5.Font-Header-File-Layout

but somehow I don't get it how to solve this. I am an artist, so maybe that's why...

Coming from the FontRobotron example https://github.com/AaronLiddiment/LEDText/blob/master/FontRobotron.h

I thought I could basically

change the

const uint8_t RobotronFontData[] = {
7, // Font Width
7, // Font Height
32, // Font First Character
96, // Font Last Character

				B8(00000000),	// Char  
				B8(00000000),
				B8(00000000),
				B8(00000000),
				B8(00000000),
				B8(00000000),
				B8(00000000),

to

const uint8_t RobotronFontData[] = {
7, // Font Width
8, // Font Height
32, // Font First Character
96, // Font Last Character

				B8(00000000),	// Char  
				B8(00000000),
				B8(00000000),
				B8(00000000),
				B8(00000000),
				B8(00000000),
				B8(00000000),
                                      **B8(00000000),**

and so on for all other chars

But it doesn't seem that simple. Not sure what I am not getting. Has it something to do with the values 32 and 96 (Font First Character and Last Character)? For what do they stand for? Don't get how one gets to 32 and 96? What kind of calculation is underlying these figures?

Sorry, if too basic, but really don't get this. Any help is much appreciated!

Best, Nino

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions