From ef8fe3f04c30caedeb17b11ac275581539f039c7 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 3 Oct 2000 18:00:00 +0200 Subject: Version 0.65 - Modified LIRC interface to better handle repeat function. - Faster OSD by first writing into a bitmap and then sending the entire bitmap to the DVB driver at once (requires the patch 'dvb.c.071.diff' to be applied against the version 0.71 DVB driver file 'dvb.c'). - When switching channels the channel is now immediately displayed, and the current/next information is shown as soon as it becomes available. - No longer displaying the year in the 'Recordings' menu to saves space for the title. - The 'Recordings' menu now displays a '*' to indicate new recordings. - Added the description of the timers.conf file to the FORMATS file (thanks to Bastian Guse). - Displaying as much as possible of the current/next info (dropping characters that would display only partially). - In normal viewing mode the '0' key now toggles between the current and the previous channel. --- font.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 font.h (limited to 'font.h') diff --git a/font.h b/font.h new file mode 100644 index 0000000..f31c6b5 --- /dev/null +++ b/font.h @@ -0,0 +1,40 @@ +/* + * font.h: Font handling for the DVB On Screen Display + * + * See the main source file 'vdr.c' for copyright information and + * how to reach the author. + * + * $Id: font.h 1.1 2000/10/01 15:00:35 kls Exp $ + */ + +#ifndef __FONT_H +#define __FONT_H + +enum eDvbFont { + fontOsd, +/* TODO as soon as we have the font files... + fontTtxSmall, + fontTtxLarge, +*/ + }; + +class cFont { +public: + enum { NUMCHARS = 256 }; + typedef unsigned long tPixelData; + struct tCharData { + tPixelData width, height; + tPixelData lines[1]; + }; +private: + const tCharData *data[NUMCHARS]; +public: + cFont(eDvbFont Font); + int Width(unsigned char c) { return data[c]->width; } + int Width(const char *s); + int Height(unsigned char c) { return data[c]->height; } + int Height(const char *s); + const tCharData *CharData(unsigned char c) { return data[c]; } + }; + +#endif //__FONT_H -- cgit v1.2.3