1 #ifndef __lib_gdi_gfont_h
2 #define __lib_gdi_gfont_h
4 #include <lib/base/object.h>
8 * \brief A softreference to a font.
10 * The font is specified by a name and a size.
11 * \c gFont is part of the \ref gdi.
13 class gFont: public iObject
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.
26 gFont(const std::string &family, int pointSize):
27 family(family), pointSize(pointSize)