Movatterモバイル変換


[0]ホーム

URL:


We bake cookies in your browser for a better experience. Using this site means that you consent.Read More

Menu

Qt Documentation

QFontEngineInfo Class

TheQFontEngineInfo class describes a specific font provided by a font engine plugin.More...

Header:#include <QFontEngineInfo>
Since: Qt 4.3

This class is under development and is subject to change.

Properties

Public Functions

QFontEngineInfo()
QFontEngineInfo(const QString & family)
QFontEngineInfo(const QFontEngineInfo & other)
~QFontEngineInfo()
QStringfamily() const
qrealpixelSize() const
voidsetFamily(const QString & name)
voidsetPixelSize(qreal size)
voidsetStyle(QFont::Style style)
voidsetWeight(int weight)
voidsetWritingSystems(const QList<QFontDatabase::WritingSystem> & writingSystems)
QFont::Stylestyle() const
intweight() const
QList<QFontDatabase::WritingSystem>writingSystems() const
QFontEngineInfo &operator=(const QFontEngineInfo & other)

Detailed Description

TheQFontEngineInfo 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.

See alsoQAbstractFontEngine andQFontEnginePlugin.

Property Documentation

family :QString

the family name of the font

Access functions:

QStringfamily() const
voidsetFamily(const QString & name)

pixelSize :qreal

the pixel size of the font

A pixel size of 0 represents a freely scalable font.

Access functions:

qrealpixelSize() const
voidsetPixelSize(qreal size)

style :QFont::Style

the style of the font

Access functions:

QFont::Stylestyle() const
voidsetStyle(QFont::Style style)

weight :int

the weight of the font

The value should be from theQFont::Weight enumeration.

Access functions:

intweight() const
voidsetWeight(int weight)

writingSystems :QList<QFontDatabase::WritingSystem>

the writing systems supported by the font

An empty list means that any writing system is supported.

Access functions:

QList<QFontDatabase::WritingSystem>writingSystems() const
voidsetWritingSystems(const QList<QFontDatabase::WritingSystem> & writingSystems)

Member Function Documentation

QFontEngineInfo::QFontEngineInfo()

Constructs a new emptyQFontEngineInfo.

QFontEngineInfo::QFontEngineInfo(constQString & family)

Constructs a newQFontEngineInfo with the specifiedfamily. The resulting object represents a freely scalable font with normal weight and style.

QFontEngineInfo::QFontEngineInfo(constQFontEngineInfo & other)

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

QFontEngineInfo::~QFontEngineInfo()

Destroys thisQFontEngineInfo object.

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

Assignsother to this font engine info object, and returns a reference to this.

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.


[8]ページ先頭

©2009-2025 Movatter.jp