Richard Parker / EALCD
Revision:
7:6cf21b018420
Parent:
6:4fe6f365cbeb
--- a/graphics/EAFont.h	Thu May 06 23:32:14 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,55 +0,0 @@
-// Copyright 2010 Richard Parker
-
-#ifndef MBED_EAFONT_H
-#define MBED_EAFONT_H
-
-#include "mbed.h"
-#include "../widgets/EAImage.h"
-
-class EALCD;
-
-/**
- * Class to handle the font for the EA LCD.
- * @author Richard Parker
- */
-class EAFont
-{
-public:
-    friend EALCD;
-    
-    struct EACharacter
-    {
-        unsigned char id;
-        unsigned char x;
-        unsigned char y;
-        unsigned char width;
-        unsigned char height;
-        unsigned char xOffset;
-        unsigned char yOffset;
-        unsigned char xAdvance;
-    };
-
-    EAFont();   
-    ~EAFont();
-    
-    inline const char* path() const { return _path; }
-    
-    inline bool isValid() const { return (_path != NULL); }
-    
-    bool load(const char* path);
-    
-    inline void setCached(bool value) { _img.setCached(value); }
-    inline bool isCached() { return _img.isCached(); }
-           
-private:
-    char* _path;
-    EACharacter* _chars;
-    int _noChars;
-    EAImage _img;
-
-    bool _getCharacter(char c, EACharacter& detail);
-    inline EAImage* _data() { return &_img; }
-    
-};
-
-#endif
\ No newline at end of file