summaryrefslogtreecommitdiff
path: root/font.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2009-12-31 15:21:51 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2009-12-31 15:21:51 +0100
commita8260204c3e66fe12173f7232feb90ece61a59e8 (patch)
treef273bf4ffb530fab60be837e8df0c89b2cf31c86 /font.h
parent6a4d4607e4a422e184f4d809c44968deb0d17778 (diff)
downloadvdr-a8260204c3e66fe12173f7232feb90ece61a59e8.tar.gz
vdr-a8260204c3e66fe12173f7232feb90ece61a59e8.tar.bz2
Added cFont::FontName() and cFont::Size()
Diffstat (limited to 'font.h')
-rw-r--r--font.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/font.h b/font.h
index eadf88c1..449b429f 100644
--- a/font.h
+++ b/font.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: font.h 2.2 2009/05/23 10:10:40 kls Exp $
+ * $Id: font.h 2.3 2009/12/31 14:48:25 kls Exp $
*/
#ifndef __FONT_H
@@ -38,6 +38,11 @@ private:
static cFont *fonts[];
public:
virtual ~cFont() {}
+ virtual const char *FontName(void) const { return ""; }
+ ///< Returns the font name.
+ virtual int Size(void) const { return Height(); }
+ ///< Returns the original size as requested when the font was created.
+ ///< This may be different than the actual height.
virtual int Width(uint c) const = 0;
///< Returns the width of the given character in pixel.
virtual int Width(const char *s) const = 0;