QFontEngineInfo Class

The QFontEngineInfo class describes a specific font provided by a font engine plugin. 更多...

頭: #include <QFontEngineInfo>
Since: Qt 4.3

該類在開發且可能改變。

特性

公共函數

QFontEngineInfo ()
QFontEngineInfo (const QString & family )
QFontEngineInfo (const QFontEngineInfo & other )
~QFontEngineInfo ()
QString family () const
qreal pixelSize () const
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
int weight () const
QList<QFontDatabase::WritingSystem> writingSystems () const
QFontEngineInfo & operator= (const QFontEngineInfo & other )

詳細描述

The QFontEngineInfo class describes a specific font provided by a font engine plugin.

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.

另請參閱 QAbstractFontEngine and QFontEnginePlugin .

特性文檔編製

family : QString

the family name of the font

訪問函數:

QString family () const
void setFamily (const QString & name )

pixelSize : qreal

the pixel size of the font

A pixel size of 0 represents a freely scalable font.

訪問函數:

qreal pixelSize () const
void setPixelSize (qreal size )

style : QFont::Style

the style of the font

訪問函數:

QFont::Style style () const
void setStyle (QFont::Style style )

weight : int

the weight of the font

The value should be from the QFont::Weight 枚舉。

訪問函數:

int weight () const
void setWeight (int weight )

writingSystems : QList < QFontDatabase::WritingSystem >

the writing systems supported by the font

An empty list means that any writing system is supported.

訪問函數:

QList<QFontDatabase::WritingSystem> writingSystems () const
void setWritingSystems (const QList<QFontDatabase::WritingSystem> & writingSystems )

成員函數文檔編製

QFontEngineInfo:: QFontEngineInfo ()

Constructs a new empty QFontEngineInfo .

QFontEngineInfo:: QFontEngineInfo (const QString & family )

構造新的 QFontEngineInfo 采用指定 family . The resulting object represents a freely scalable font with normal weight and style.

QFontEngineInfo:: QFontEngineInfo (const QFontEngineInfo & other )

Creates a new font engine info object with the same attributes as other .

QFontEngineInfo:: ~QFontEngineInfo ()

銷毀此 QFontEngineInfo 對象。

QFontEngineInfo & QFontEngineInfo:: operator= (const QFontEngineInfo & other )

賦值 other to this font engine info object, and returns a reference to this.