Home

Dokumentation

Impressum

Dokumentation VDR
 

Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

font.h

Go to the documentation of this file.
00001 
00010 #ifndef __FONT_H
00011 #define __FONT_H
00012 
00013 
00015 enum eDvbFont {
00019   fontOsd,
00020   
00024   fontFix,
00025 
00026   /* TODO as soon as we have the font files...
00027      fontTtxSmall,
00028      fontTtxLarge,
00029   */
00030   };
00031 
00033 class cFont {
00034 public:
00035   enum { NUMCHARS = 256 };
00036   typedef unsigned long tPixelData;
00037   struct tCharData {
00038     tPixelData width, height;
00039     tPixelData lines[1];
00040     };
00041 private:
00042   const tCharData *data[NUMCHARS];
00043 public:
00044   cFont(eDvbFont Font);
00045   int Width(unsigned char c) { return data[c]->width; }
00046   int Width(const char *s);
00047   int Height(unsigned char c) { return data[c]->height; }
00048   int Height(const char *s);
00049   const tCharData *CharData(unsigned char c) { return data[c]; }
00050   };
00051 
00052 #endif //__FONT_H
00053 

Generated on Wed Feb 5 23:30:08 2003 for VDR by doxygen1.3-rc2