Qt 4.8
Public Functions | Properties | List of all members
QFontEngineInfo Class Reference

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...
 
QFontEngineInfooperator= (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::WritingSystemwritingSystems () const
 An empty list means that any writing system is supported. More...
 
 ~QFontEngineInfo ()
 Destroys this QFontEngineInfo object. More...
 

Properties

QFontEngineInfoPrivated
 

Detailed Description

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

This function is under development and subject to change.

Since
4.3

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.

See also
QAbstractFontEngine, QFontEnginePlugin

Definition at line 60 of file qabstractfontengine_qws.h.

Constructors and Destructors

◆ QFontEngineInfo() [1/3]

QFontEngineInfo::QFontEngineInfo ( )

Constructs a new empty QFontEngineInfo.

Definition at line 87 of file qabstractfontengine_qws.cpp.

◆ QFontEngineInfo() [2/3]

QFontEngineInfo::QFontEngineInfo ( const QString family)
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.

98 {
100  d->family = family;
101 }
QString family() const
the family name of the font
QFontEngineInfoPrivate * d

◆ QFontEngineInfo() [3/3]

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.

107  : d(new QFontEngineInfoPrivate(*other.d))
108 {
109 }
QFontEngineInfoPrivate * d

◆ ~QFontEngineInfo()

QFontEngineInfo::~QFontEngineInfo ( )

Destroys this QFontEngineInfo object.

Definition at line 124 of file qabstractfontengine_qws.cpp.

125 {
126  delete d;
127 }
QFontEngineInfoPrivate * d

Functions

◆ family()

QString QFontEngineInfo::family ( ) const

the family name of the font

Definition at line 139 of file qabstractfontengine_qws.cpp.

Referenced by initializeDb(), and setFamily().

140 {
141  return d->family;
142 }
QFontEngineInfoPrivate * d

◆ operator=()

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.

116 {
117  *d = *other.d;
118  return *this;
119 }
QFontEngineInfoPrivate * d

◆ pixelSize()

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().

160 {
161  return d->pixelSize;
162 }
QFontEngineInfoPrivate * d

◆ setFamily()

void QFontEngineInfo::setFamily ( const QString name)

Definition at line 134 of file qabstractfontengine_qws.cpp.

Referenced by loadSingleEngine().

135 {
136  d->family = family;
137 }
QString family() const
the family name of the font
QFontEngineInfoPrivate * d

◆ setPixelSize()

void QFontEngineInfo::setPixelSize ( qreal  size)

Definition at line 154 of file qabstractfontengine_qws.cpp.

Referenced by loadSingleEngine().

155 {
156  d->pixelSize = size;
157 }
QFontEngineInfoPrivate * d

◆ setStyle()

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

Definition at line 189 of file qabstractfontengine_qws.cpp.

Referenced by loadSingleEngine().

190 {
191  d->style = style;
192 }
QFont::Style style() const
the style of the font
QFontEngineInfoPrivate * d

◆ setWeight()

void QFontEngineInfo::setWeight ( int  weight)

Definition at line 174 of file qabstractfontengine_qws.cpp.

Referenced by loadSingleEngine().

175 {
176  d->weight = weight;
177 }
QFontEngineInfoPrivate * d
int weight() const
The value should be from the QFont::Weight enumeration.

◆ setWritingSystems()

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

Definition at line 214 of file qabstractfontengine_qws.cpp.

215 {
217 }
QList< QFontDatabase::WritingSystem > writingSystems
QList< QFontDatabase::WritingSystem > writingSystems() const
An empty list means that any writing system is supported.
QFontEngineInfoPrivate * d

◆ style()

QFont::Style QFontEngineInfo::style ( ) const

the style of the font

Definition at line 194 of file qabstractfontengine_qws.cpp.

Referenced by initializeDb(), and setStyle().

195 {
196  return d->style;
197 }
QFontEngineInfoPrivate * d

◆ weight()

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().

180 {
181  return d->weight;
182 }
QFontEngineInfoPrivate * d

◆ writingSystems()

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().

210 {
211  return d->writingSystems;
212 }
QList< QFontDatabase::WritingSystem > writingSystems
QFontEngineInfoPrivate * d

Properties

◆ d

QFontEngineInfoPrivate* QFontEngineInfo::d
private

The documentation for this class was generated from the following files: