25 #include "ginteractor.h" 76 static QFont
deriveQFont(
const QFont& font, QFont::Weight weight = QFont::Normal,
int size = -1);
82 static QFont
deriveQFont(
const QFont& font,
const string& fontFamily, QFont::Weight weight = QFont::Normal,
int size = -1);
89 static QFont
deriveQFont(
const string& font, QFont::Weight weight = QFont::Normal,
int size = -1);
96 static QFont
deriveQFont(
const string& font,
const string& fontFamily, QFont::Weight weight = QFont::Normal,
int size = -1);
114 static QFont
toQFont(
const string& fontString);
121 static QFont
toQFont(
const QFont& basisFont,
const string& fontString);
125 static QFont::StyleHint getStyleHint(
const string& fontFamily);
static QFont toQFont(string fontString)
Converts a font string such as "Helvetica-12-Bold" into a Qt font object.
Definition: gfont.cpp:159
static void italicFont(GInteractor *interactor)
Makes the given interactor's font italic.
Definition: gfont.cpp:109
This class contains static methods for dealing with fonts in our GUI system.
Definition: gfont.h:42
static string toFontString(const QFont &font)
Converts the given Qt font object into a font string such as "Helvetica-12-Bold". ...
Definition: gfont.cpp:118
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.
Definition: gfont.cpp:60
static void boldFont(GInteractor *interactor)
Makes the given interactor's font bold.
Definition: gfont.cpp:37
This abstract class is the superclass for all graphical interactors.
Definition: ginteractor.h:52
This graphical object subclass represents a text string.
Definition: gobjects.h:1446
static void changeFontSize(GInteractor *interactor, int dsize)
Modifies the font of the given interactor, changing its size by the given number of points...
Definition: gfont.cpp:43