GLCD calfonts

Hi,

I wonder if anyone can help me.

Im having toruuble getting the calfont working on my glcd.

Here is my sketch:

/*
 * 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?

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 '

I downloaded the fonts here: GitHub - johnmccombs/calfonts

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

Samuel 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 ’


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

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

Samuel in program
C:\Users\messy\Desktop\arduino-0022\libraries\glcd/fonts/CalLite24.h:1104: error: stray '

I downloaded the fonts here: GitHub - johnmccombs/calfonts

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

Samuel 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

Clearly something happened in the download process to corrupt that file, then. On the web site, the CalLite24.h file only has 188 lines. Your first error is detected on line 212.