fix inverted setting (meaning was inverted too)
[enigma2.git] / lib / gdi / gfont.h
1 #ifndef __lib_gdi_gfont_h
2 #define __lib_gdi_gfont_h
3
4 #include <lib/base/object.h>
5 #include <string>
6
7 /**
8  * \brief A softreference to a font.
9  *
10  * The font is specified by a name and a size.
11  * \c gFont is part of the \ref gdi.
12  */
13 class gFont: public iObject
14 {
15 DECLARE_REF(gFont);
16 public:
17
18         std::string family;
19         int pointSize;
20         
21         /**
22          * \brief Constructs a font with the given name and size.
23          * \param family The name of the font, for example "NimbusSansL-Regular Sans L Regular".
24          * \param pointSize the size of the font in PIXELS.
25          */
26         gFont(const std::string &family, int pointSize):
27                         family(family), pointSize(pointSize)
28         {
29         }
30         
31         virtual ~gFont()
32         {
33         }
34         
35         gFont()
36                 :pointSize(0)
37         {
38         }
39 };
40
41 #endif