7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qstring.h>
9#include <QtCore/qiodevice.h>
10#include <QtCore/qglobal.h>
11#include <QtCore/qobject.h>
12#include <QtCore/qpoint.h>
13#include <QtGui/qfont.h>
14#include <QtGui/qtransform.h>
15#include <QtGui/qfontdatabase.h>
17#if !defined(QT_NO_RAWFONT)
46 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QRawFont)
67 LayoutFlags layoutFlags)
const;
68 bool glyphIndexesForChars(
const QChar *chars,
int numChars,
quint32 *glyphIndexes,
int *
numGlyphs)
const;
70 bool advancesForGlyphIndexes(
const quint32 *glyphIndexes,
QPointF *advances,
int numGlyphs, LayoutFlags layoutFlags)
const;
78 void setPixelSize(
qreal pixelSize);
79 qreal pixelSize()
const;
84 qreal capHeight()
const;
85 qreal descent()
const;
86 qreal leading()
const;
87 qreal xHeight()
const;
88 qreal averageCharWidth()
const;
89 qreal maxCharWidth()
const;
90 qreal lineThickness()
const;
91 qreal underlinePosition()
const;
93 qreal unitsPerEm()
const;
103 bool supportsCharacter(
uint ucs4)
const;
104 bool supportsCharacter(
QChar character)
const;
107 QByteArray fontTable(
const char *tagName)
const;
127 QRawFont::LayoutFlags layoutFlags)
const
130 if (advancesForGlyphIndexes(glyphIndexes.constData(), advances.
data(),
int(glyphIndexes.size()), layoutFlags))
WritingSystem
\value Any \value Latin \value Greek \value Cyrillic \value Armenian \value Hebrew \value Arabic \val...
Style
This enum describes the different styles of glyphs that are used to display text.
\inmodule QtCore\reentrant
The QRawFont class provides access to a single physical instance of a font.
QList< QPointF > advancesForGlyphIndexes(const QList< quint32 > &glyphIndexes, LayoutFlags layoutFlags) const
QList< QPointF > advancesForGlyphIndexes(const QList< quint32 > &glyphIndexes) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
AntialiasingType
This enum represents the different ways a glyph can be rasterized in the function alphaMapForGlyph().
bool operator!=(const QRawFont &other) const
Returns true if this QRawFont is not equal to other.
void swap(QRawFont &other) noexcept
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLenum const void GLbitfield GLsizei numGlyphs
GLuint GLuint GLfloat weight
GLenum GLsizeiptr const void * fontData
GLuint GLenum GLenum transform
static const QRectF boundingRect(const QPointF *points, int pointCount)
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Q_GUI_EXPORT size_t qHash(const QRawFont &font, size_t seed=0) noexcept