diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-22 12:53:09 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2016-12-22 12:53:09 +0100 |
commit | b6080634cc57b02f53d427deb45a2dcc297c94be (patch) | |
tree | c9fd545d6212ac6814cf811f01d34a1da6f5e63f /font.h | |
parent | f91468ff9bca7bbf07ff854909cd5564dbb59f23 (diff) | |
download | vdr-b6080634cc57b02f53d427deb45a2dcc297c94be.tar.gz vdr-b6080634cc57b02f53d427deb45a2dcc297c94be.tar.bz2 |
Added cFont::Width(void) to get the default character width and allow stretched font drawing in high level OSDs
Diffstat (limited to 'font.h')
-rw-r--r-- | font.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: font.h 4.1 2016/12/13 14:58:53 kls Exp $ + * $Id: font.h 4.2 2016/12/22 12:43:24 kls Exp $ */ #ifndef __FONT_H @@ -45,6 +45,9 @@ public: ///< Returns the original size as requested when the font was created. ///< This may be smaller than the actual height, for instance if the ///< font contains descenders. + virtual int Width(void) const = 0; + ///< Returns the original character width as requested when the font was + ///< created, or 0 if the default width is used. virtual int Width(uint c) const = 0; ///< Returns the width of the given character in pixel. virtual int Width(const char *s) const = 0; |