#include <faith/font.h>
Public Types | |
| Light = 25 | |
| Normal = 50 | |
| DemiBold = 63 | |
| Bold = 75 | |
| Black = 87 | |
| enum | Weight { Light = 25, Normal = 50, DemiBold = 63, Bold = 75, Black = 87 } |
Public Member Functions | |
| Font () | |
| Font (const Font ©) | |
| Font (const String &family, int points=12, int weight=Normal, bool oblique=false) | |
| ~Font () | |
| Font & | operator= (const Font ©) |
| bool | operator== (const Font &other) const |
| Handle | x11Handle () |
| void * | xftHandle () |
| String | filename () const |
| String | family () const |
| int | pointSize () const |
| enum Faith::Font::Weight |
| Faith::Font::Font | ( | ) |
Uses the default font
| Faith::Font::Font | ( | const Font & | copy | ) |
Makes a duplicate of the given font object
| Faith::Font::Font | ( | const String & | family, | |
| int | points = 12, |
|||
| int | weight = Normal, |
|||
| bool | oblique = false | |||
| ) |
creates a font with the given font family, point size, weight, and italicity
| Faith::Font::~Font | ( | ) |
| String Faith::Font::family | ( | ) | const |
| String Faith::Font::filename | ( | ) | const |
| bool Faith::Font::operator== | ( | const Font & | other | ) | const |
other is the same as this | int Faith::Font::pointSize | ( | ) | const |
| Handle Faith::Font::x11Handle | ( | ) |
| void* Faith::Font::xftHandle | ( | ) |
1.4.7