QtGui/qrawfont.h Source File
Go to the documentation of this file.
54 #if !defined(QT_NO_RAWFONT)
62 class QRawFontPrivate;
72 QRawFont(
const QString &fileName,
78 QRawFont(
const QRawFont &other);
83 QRawFont &operator=(
const QRawFont &other);
97 bool glyphIndexesForChars(
const QChar *chars,
int numChars,
quint32 *glyphIndexes,
int *numGlyphs)
const;
98 bool advancesForGlyphIndexes(
const quint32 *glyphIndexes,
QPointF *advances,
int numGlyphs)
const;
101 AntialiasingType antialiasingType = SubPixelAntialiasing,
105 void setPixelSize(qreal pixelSize);
106 qreal pixelSize()
const;
110 qreal ascent()
const;
111 qreal descent()
const;
112 qreal leading()
const;
113 qreal xHeight()
const;
114 qreal averageCharWidth()
const;
115 qreal maxCharWidth()
const;
117 qreal unitsPerEm()
const;
119 void loadFromFile(
const QString &fileName,
127 bool supportsCharacter(
quint32 ucs4)
const;
128 bool supportsCharacter(
QChar character)
const;
131 QByteArray fontTable(
const char *tagName)
const;
133 static QRawFont fromFont(
const QFont &font,
137 friend class QRawFontPrivate;
145 #endif // QT_NO_RAWFONT
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
bool operator!=(const QRawFont &other) const
GLuint GLenum GLenum transform