23 #include "ginteractor.h" 72 static QFont
deriveQFont(
const QFont& font, QFont::Weight weight = QFont::Normal,
int size = -1);
78 static QFont
deriveQFont(
const QFont& font,
const string& fontFamily, QFont::Weight weight = QFont::Normal,
int size = -1);
85 static QFont
deriveQFont(
const string& font, QFont::Weight weight = QFont::Normal,
int size = -1);
92 static QFont
deriveQFont(
const string& font,
const string& fontFamily, QFont::Weight weight = QFont::Normal,
int size = -1);
110 static QFont
toQFont(
const string& fontString);
117 static QFont
toQFont(
const QFont& basisFont,
const string& fontString);
121 static QFont::StyleHint getStyleHint(
const string& fontFamily);
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:39
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:56
This graphical object subclass represents a text string.
Definition: gobjects.h:1442
static void italicFont(GInteractor *interactor)
Makes the given interactor's font italic.
Definition: gfont.cpp:105
This abstract class is the superclass for all graphical interactors.
Definition: ginteractor.h:48
This class contains static methods for dealing with fonts in our GUI system.
Definition: gfont.h:38
static string toFontString(const QFont &font)
Converts the given Qt font object into a font string such as "Helvetica-12-Bold". ...
Definition: gfont.cpp:114
static void boldFont(GInteractor *interactor)
Makes the given interactor's font bold.
Definition: gfont.cpp:33
static QFont toQFont(string fontString)
Converts a font string such as "Helvetica-12-Bold" into a Qt font object.
Definition: gfont.cpp:155