|
static void | boldFont(GInteractor *interactor) |
| Makes the given interactor's font bold. More...
|
|
static void | changeFontSize(GInteractor *interactor, int dsize) |
| Modifies the font of the given interactor, changing its size by the given number of points. More...
|
|
static void | changeFontSize(GText *label, int dsize) |
| Modifies the font of the given label, changing its size by the given number of points. More...
|
|
static QFont | changeFontSize(const QFont &font, int dsize) |
| Modifies the size of the given Qt font object, changing its size by the given number of points, and returning the new modified font. More...
|
|
static QFont | deriveQFont(const QFont &font, QFont::Weight weight=QFont::Normal, int size=-1) |
| Modifies the given font object, changing its weight and/or size to the given values, and returning the new modified font. More...
|
|
static QFont | deriveQFont(const QFont &font, string fontFamily, QFont::Weight weight=QFont::Normal, int size=-1) |
| Modifies the given font object, changing its font family, weight, and/or size to the given values, and returning the new modified font. More...
|
|
static QFont | deriveQFont(string font, QFont::Weight weight=QFont::Normal, int size=-1) |
| Modifies the given font object, changing its weight and/or size to the given values, and returning the new modified font. More...
|
|
static QFont | deriveQFont(string font, string fontFamily, QFont::Weight weight=QFont::Normal, int size=-1) |
| Modifies the given font object, changing its font family, weight, and/or size to the given values, and returning the new modified font. More...
|
|
static void | italicFont(GInteractor *interactor) |
| Makes the given interactor's font italic. More...
|
|
static string | toFontString(const QFont &font) |
| Converts the given Qt font object into a font string such as "Helvetica-12-Bold". More...
|
|
static QFont | toQFont(string fontString) |
| Converts a font string such as "Helvetica-12-Bold" into a Qt font object. More...
|
|
static QFont | toQFont(const QFont &basisFont, string fontString) |
| Converts a font string such as "Helvetica-*-12" into a Qt font object, using the given 'basis' object for any defaults that are not present in the font string. More...
|
|
This class contains static methods for dealing with fonts in our GUI system.
A font string has the following format:
"family-style-size"
where both style
and size
are optional. If any of these elements are missing or specified as an asterisk, the existing value is retained.
QFont deriveQFont |
( |
string |
font, |
|
|
string |
fontFamily, |
|
|
QFont::Weight |
weight = QFont::Normal , |
|
|
int |
size = -1 |
|
) |
| |
|
static |
Modifies the given font object, changing its font family, weight, and/or size to the given values, and returning the new modified font.
The font you pass should be a font string such as "Helvetica-12-Bold".