Pages: [1]   Go Down
Author Topic: Couple of big fonts for Arduino GLCD lib and KS0108 LCD's  (Read 3342 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 3
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I've uploaded a couple of fonts for use with KS0108 display and the GLCD library. Download from github:
https://github.com/johnmccombs/calfonts

Screenshot here
http://johnmccombs.inmap.net/2011/05/19/arduino-glcd-font/

Logged

United States of America, Florida
Offline Offline
Jr. Member
**
Karma: 0
Posts: 64
Watching electrolytic caps exploding is one of my favorite past-times.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

This belongs in the exhibition category, as cool as it may be, this is a place for questions.
Logged

Memento Mori
------------
Sola Christus

The Christian Hacker:
https://www.facebook.com/groups/141258275980190/

Offline Offline
Jr. Member
**
Karma: 1
Posts: 66
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I wonder if anyone can help me.

Im having toruuble getting the calfont working on my glcd.

Here is my sketch:

Code:
/*
 * GLCDexample
 *
 * Basic test code for the Arduino GLCD library.
 * This code exercises a range of graphic functions supported
 * by the library and provides examples of its use.
 * It also gives an indication of performance, showing the
 * number of frames drawn per second. 
 */

#include <glcd.h>

#include "fonts/allFonts.h"         // system and arial14 fonts are used
#include "bitmaps/allBitmaps.h"       // all images in the bitmap dir
#include "fonts/CalLite24.h"         // system and arial14 fonts are used

Image_t icon;

gText textArea;              // a text area to be defined later in the sketch
gText textAreaArray[3];      // an array of text areas 
gText countdownArea =  gText(GLCD.CenterX, GLCD.CenterY,1,1,Arial_14); // text area for countdown digits

unsigned long startMillis;
unsigned int  loops = 0;
unsigned int  iter = 0;
         int  theDelay = 20;

void setup()
{
  GLCD.Init();   // initialise the library, non inverted writes pixels onto a clear screen
  GLCD.ClearScreen();
  GLCD.SelectFont(System5x7, BLACK); // font for the default text area
}

void  loop()

    GLCD.SelectFont(CalLite24.h);
    GLCD.print("GLCD ");
 
}

These are the errors i get?

Code:
In file included from GLCDdemo.cpp:15:
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:212: error: stray '#' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:332: error: missing terminating ' character
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:333: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:333: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:333: error: stray '\221' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:333: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:333: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:333: error: stray '\223' in program
In file included from GLCDdemo.cpp:15:
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:423:160: error: invalid suffix "c4941573d0ca200799" on integer constant
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:427:123: error: invalid suffix "a52378abda931fa7b45" on integer constant
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:701: error: stray '#' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:701: error: stray '#' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:785: error: stray '#' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:785: error: stray '#' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:799: error: stray '#' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:939: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:939: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:939: error: stray '\220' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:943: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:943: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:943: error: stray '\222' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:947: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:947: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:947: error: stray '\221' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:951: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:951: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:951: error: stray '\223' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:961: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:961: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:961: error: stray '\220' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:965: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:965: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:965: error: stray '\222' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:969: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:969: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:969: error: stray '\221' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:973: error: stray '\342' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:973: error: stray '\206' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:973: error: stray '\223' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1012:3: error: invalid preprocessing directive #This
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1013: error: stray '##' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1014: error: stray '##' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1014: error: stray '##' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1014: error: stray '##' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1031:10: error: invalid suffix "a" on integer constant
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1032:10: error: invalid suffix "b" on integer constant
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1038:11: error: invalid suffix "a" on integer constant
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1039:11: error: invalid suffix "b" on integer constant
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1055: error: missing terminating ' character
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1066: error: stray '`' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1066: error: stray '`' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1066: error: stray '`' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1069: error: stray '$' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1072: error: stray '`' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1072: error: stray '`' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1072: error: stray '`' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1088: error: stray '`' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1088: error: stray '`' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1098: error: stray '$' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1104: error: stray '$' in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:6: error: expected unqualified-id before '<' token
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:11: error: expected constructor, destructor, or type conversion before '.' token
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:11: error: expected unqualified-id before '<' token

I downloaded the fonts here: https://github.com/johnmccombs/calfonts

I have put them in: \arduino-0022\libraries\glcd\fonts

Samuel
Logged

Dallas, TX USA
Offline Offline
Faraday Member
**
Karma: 70
Posts: 2766
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I've uploaded a couple of fonts for use with KS0108 display and the GLCD library. Download from github:
https://github.com/johnmccombs/calfonts

Screenshot here
http://johnmccombs.inmap.net/2011/05/19/arduino-glcd-font/



Nice fonts. And they would be really nice to toss into the next GLCD library release.
But where exactly did these come from? I'm trying to understand the copyright.
Did You or Integrated Mapping Ltd actually create these fonts or did you grab them
from the Microsoft fonts available from Windows or from free BDF fonts in linux or somewhere else?

So I guess my real question is, is are these fonts original new works, or are they
really the reformatting of some else's existing copyrighted fonts?

--- bill

Logged

Dallas, TX USA
Offline Offline
Faraday Member
**
Karma: 70
Posts: 2766
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I wonder if anyone can help me.

Samuel

I have no idea why you get those strange errors. I don't get them with 0022
maybe you have a different version of the IDE?

Anyway, the error is this:
Change this:

Code:
GLCD.SelectFont(CalLite24.h);
to this:
Code:
GLCD.SelectFont(CalLite24);

Simple typo...  smiley

--- bill
Logged

Pages: [1]   Go Up
Jump to: