diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-06-23 10:41:10 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-06-23 10:41:10 +0200 |
commit | d9a8e282e561004ff318b5db14f3c026c5c6ddec (patch) | |
tree | e1537a38eb3c75a7c9074d18a8762ee16832c1ad /font.h | |
parent | 95f4ddd4e5ce8f8816bd7206426337ce7f1e4f98 (diff) | |
download | vdr-d9a8e282e561004ff318b5db14f3c026c5c6ddec.tar.gz vdr-d9a8e282e561004ff318b5db14f3c026c5c6ddec.tar.bz2 |
Fonts can now be created with a width that overwrites the default width
Diffstat (limited to 'font.h')
-rw-r--r-- | font.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: font.h 1.19 2007/06/17 12:11:31 kls Exp $ + * $Id: font.h 1.20 2007/06/23 10:09:14 kls Exp $ */ #ifndef __FONT_H @@ -57,9 +57,10 @@ public: ///< The caller must not use the returned font outside the scope in which ///< it was retrieved by the call to GetFont(), because a call to SetFont() ///< may delete an existing font. - static cFont *CreateFont(const char *Name, int CharHeight); + static cFont *CreateFont(const char *Name, int CharHeight, int CharWidth = 0); ///< Creates a new font object with the given Name and makes its characters - ///< CharHeight pixels high. Name is of the form "Family:Style", for instance + ///< CharHeight pixels high. If CharWidth is given, it overwrites the font's + ///< default width. Name is of the form "Family:Style", for instance ///< "Verdana:Bold Italic" or "Times New Roman". See GetAvailableFontNames() ///< for how to get a list of all available font names. ///< If the requested font can't be created, NULL is returned. |