QtGui/qabstractfontengine_qws.h Source File
Go to the documentation of this file.
42 #ifndef QABSTRACTFONTENGINE_QWS_H
43 #define QABSTRACTFONTENGINE_QWS_H
58 class QFontEngineInfoPrivate;
63 QDOC_PROPERTY(
QString family READ family WRITE setFamily)
64 QDOC_PROPERTY(qreal pixelSize READ pixelSize WRITE setPixelSize)
65 QDOC_PROPERTY(
int weight READ weight WRITE setWeight)
66 QDOC_PROPERTY(
QFont::Style style READ style WRITE setStyle)
70 explicit QFontEngineInfo(
const QString &family);
71 QFontEngineInfo(
const QFontEngineInfo &other);
72 QFontEngineInfo &operator=(
const QFontEngineInfo &other);
78 void setPixelSize(qreal
size);
79 qreal pixelSize()
const;
81 void setWeight(
int weight);
91 QFontEngineInfoPrivate *d;
102 #define QFontEngineFactoryInterface_iid "com.trolltech.Qt.QFontEngineFactoryInterface"
105 class QFontEnginePluginPrivate;
125 class QAbstractFontEnginePrivate;
132 CanOutlineGlyphs = 1,
133 CanRenderGlyphs_Mono = 2,
134 CanRenderGlyphs_Gray = 4,
135 CanRenderGlyphs = CanRenderGlyphs_Mono | CanRenderGlyphs_Gray
137 Q_DECLARE_FLAGS(Capabilities, Capability)
183 ReturnDesignMetrics = 0x0002
185 Q_DECLARE_FLAGS(TextShapingFlags, TextShapingFlag)
187 virtual Capabilities capabilities() const = 0;
188 virtual
QVariant fontProperty(FontProperty property) const = 0;
190 virtual
bool convertStringToGlyphIndices(const
QChar *
string,
int length, uint *glyphs,
int *numGlyphs, TextShapingFlags flags) const = 0;
192 virtual
void getGlyphAdvances(const uint *glyphs,
int numGlyphs, Fixed *advances, TextShapingFlags flags) const = 0;
194 virtual GlyphMetrics glyphMetrics(uint glyph) const = 0;
196 virtual
bool renderGlyph(uint glyph,
int depth,
int bytesPerLine,
int height, uchar *
buffer);
198 virtual
void addGlyphOutlinesToPath(uint *glyphs,
int numGlyphs, FixedPoint *positions,
QPainterPath *path);
214 Q_DECLARE_OPERATORS_FOR_FLAGS(QAbstractFontEngine::Capabilities)
215 Q_DECLARE_OPERATORS_FOR_FLAGS(QAbstractFontEngine::TextShapingFlags)
#define QFontEngineFactoryInterface_iid
#define QT_BEGIN_NAMESPACE
GLenum GLsizei GLsizei height
GLuint GLsizei GLsizei * length
GLint GLint GLsizei GLsizei GLsizei depth
GLuint const GLchar * name