Qt 4.8
|
The QFontEngineInfo class describes a specific font provided by a font engine plugin. More...
#include <qabstractfontengine_qws.h>
Public Functions | |
QString | family () const |
the family name of the font More... | |
QFontEngineInfo & | operator= (const QFontEngineInfo &other) |
Assigns other to this font engine info object, and returns a reference to this. More... | |
qreal | pixelSize () const |
A pixel size of 0 represents a freely scalable font. More... | |
QFontEngineInfo () | |
Constructs a new empty QFontEngineInfo. More... | |
QFontEngineInfo (const QString &family) | |
Constructs a new QFontEngineInfo with the specified family. More... | |
QFontEngineInfo (const QFontEngineInfo &other) | |
Creates a new font engine info object with the same attributes as other. More... | |
void | setFamily (const QString &name) |
void | setPixelSize (qreal size) |
void | setStyle (QFont::Style style) |
void | setWeight (int weight) |
void | setWritingSystems (const QList< QFontDatabase::WritingSystem > &writingSystems) |
QFont::Style | style () const |
the style of the font More... | |
int | weight () const |
The value should be from the QFont::Weight enumeration. More... | |
QList< QFontDatabase::WritingSystem > | writingSystems () const |
An empty list means that any writing system is supported. More... | |
~QFontEngineInfo () | |
Destroys this QFontEngineInfo object. More... | |
Properties | |
QFontEngineInfoPrivate * | d |
The QFontEngineInfo class describes a specific font provided by a font engine plugin.
This function is under development and subject to change.
QFontEngineInfo is used to describe a request of a font to a font engine plugin as well as to describe the actual fonts a plugin provides.
Definition at line 60 of file qabstractfontengine_qws.h.
QFontEngineInfo::QFontEngineInfo | ( | ) |
|
explicit |
Constructs a new QFontEngineInfo with the specified family.
The resulting object represents a freely scalable font with normal weight and style.
Definition at line 97 of file qabstractfontengine_qws.cpp.
QFontEngineInfo::QFontEngineInfo | ( | const QFontEngineInfo & | other | ) |
Creates a new font engine info object with the same attributes as other.
Definition at line 106 of file qabstractfontengine_qws.cpp.
QFontEngineInfo::~QFontEngineInfo | ( | ) |
QString QFontEngineInfo::family | ( | ) | const |
the family name of the font
Definition at line 139 of file qabstractfontengine_qws.cpp.
Referenced by initializeDb(), and setFamily().
QFontEngineInfo & QFontEngineInfo::operator= | ( | const QFontEngineInfo & | other | ) |
Assigns other to this font engine info object, and returns a reference to this.
Definition at line 115 of file qabstractfontengine_qws.cpp.
qreal QFontEngineInfo::pixelSize | ( | ) | const |
A pixel size of 0 represents a freely scalable font.
the pixel size of the font
Definition at line 159 of file qabstractfontengine_qws.cpp.
Referenced by initializeDb().
void QFontEngineInfo::setFamily | ( | const QString & | name | ) |
Definition at line 134 of file qabstractfontengine_qws.cpp.
Referenced by loadSingleEngine().
void QFontEngineInfo::setPixelSize | ( | qreal | size | ) |
void QFontEngineInfo::setStyle | ( | QFont::Style | style | ) |
Definition at line 189 of file qabstractfontengine_qws.cpp.
Referenced by loadSingleEngine().
void QFontEngineInfo::setWeight | ( | int | weight | ) |
Definition at line 174 of file qabstractfontengine_qws.cpp.
Referenced by loadSingleEngine().
void QFontEngineInfo::setWritingSystems | ( | const QList< QFontDatabase::WritingSystem > & | writingSystems | ) |
Definition at line 214 of file qabstractfontengine_qws.cpp.
QFont::Style QFontEngineInfo::style | ( | ) | const |
the style of the font
Definition at line 194 of file qabstractfontengine_qws.cpp.
Referenced by initializeDb(), and setStyle().
int QFontEngineInfo::weight | ( | ) | const |
The value should be from the QFont::Weight enumeration.
the weight of the font
Definition at line 179 of file qabstractfontengine_qws.cpp.
Referenced by initializeDb(), and setWeight().
QList< QFontDatabase::WritingSystem > QFontEngineInfo::writingSystems | ( | ) | const |
An empty list means that any writing system is supported.
the writing systems supported by the font
Definition at line 209 of file qabstractfontengine_qws.cpp.
Referenced by initializeDb(), and setWritingSystems().
|
private |
Definition at line 91 of file qabstractfontengine_qws.h.
Referenced by family(), QFontEnginePlugin::keys(), operator=(), pixelSize(), QFontEnginePlugin::QFontEnginePlugin(), setFamily(), setPixelSize(), setStyle(), setWeight(), setWritingSystems(), style(), weight(), writingSystems(), and ~QFontEngineInfo().