- work on timers
[vuplus_dvbapp] / lib / gdi / font.h
index a17fee7..c55b8f4 100644 (file)
@@ -79,7 +79,7 @@ class eLCD;
 
 class eTextPara: public iObject
 {
-DECLARE_REF;
+DECLARE_REF(eTextPara);
 private:
        ePtr<Font> current_font, replacement_font;
        FT_Face current_face, replacement_face;
@@ -130,16 +130,23 @@ public:
 
                return boundBox;
        }
+       
+       const int size() const
+       {
+               return glyphs.size();
+       }
 
        const eRect& getGlyphBBox(int num) const
        {
+               assert(num >= 0);
+               assert(num < (int)glyphs.size());
                return glyphs[num].bbox;
        }
 };
 
 class Font: public iObject
 {
-DECLARE_REF;
+DECLARE_REF(Font);
 public:
        FTC_Image_Desc font;
        fontRenderClass *renderer;