42 #ifndef QABSTRACTFONTENGINE_QWS_H 43 #define QABSTRACTFONTENGINE_QWS_H 45 #include <QtCore/qobject.h> 46 #include <QtCore/qhash.h> 47 #include <QtCore/qvariant.h> 48 #include <QtCore/qfactoryinterface.h> 49 #include <QtGui/qpaintengine.h> 50 #include <QtGui/qfontdatabase.h> 78 void setPixelSize(
qreal size);
81 void setWeight(
int weight);
102 #define QFontEngineFactoryInterface_iid "com.trolltech.Qt.QFontEngineFactoryInterface" 132 CanOutlineGlyphs = 1,
133 CanRenderGlyphs_Mono = 2,
134 CanRenderGlyphs_Gray = 4,
135 CanRenderGlyphs = CanRenderGlyphs_Mono | CanRenderGlyphs_Gray
153 : x(0), y(0), width(0), height(0),
183 ReturnDesignMetrics = 0x0002
187 virtual Capabilities capabilities()
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;
196 virtual bool renderGlyph(
uint glyph,
int depth,
int bytesPerLine,
int height,
uchar *buffer);
The QVariant class acts like a union for the most common Qt data types.
#define QFontEngineFactoryInterface_iid
static mach_timebase_info_data_t info
#define QT_END_NAMESPACE
This macro expands to.
#define QDOC_PROPERTY(text)
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
Fixed y
The y coordinate of this point.
static Expression::Ptr create(Expression *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo)
virtual QList< QFontEngineInfo > availableFontEngines() const =0
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
Fixed advance
The advance of the glyph.
The QObject class is the base class of all Qt objects.
virtual QAbstractFontEngine * create(const QFontEngineInfo &info)=0
The QChar class provides a 16-bit Unicode character.
Capability
This enum describes the capabilities of a font engine.
#define Q_DECLARE_INTERFACE(IFace, IId)
The QFontEnginePlugin class is the base class for font engine factory plugins in Qt for Embedded Linu...
QAbstractFontEngine::FixedPoint defines a point in the place using 26.6 fixed point precision...
TextShapingFlag
This enum describes flags controlling conversion of characters to glyphs and their metrics...
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
static float pixelSize(const QFontDef &request, int dpi)
int Fixed
This type is int, interpreted as a 26.
The QFontEngineInfo class describes a specific font provided by a font engine plugin.
static const QCssKnownValue positions[NumKnownPositionModes - 1]
The QStringList class provides a list of strings.
Style
This enum describes the different styles of glyphs that are used to display text. ...
Fixed height
The height of the glyph.
GlyphMetrics()
Constructs an empty glyph metrics object with all values set to zero.
virtual QStringList keys() const =0
Fixed x
The x coordinate of this point.
QAbstractFontEngine::GlyphMetrics defines the metrics of a single glyph.
QFontEngineInfoPrivate * d
#define Q_INTERFACES(x)
This macro tells Qt which interfaces the class implements.
Fixed width
The width of the glyph.
#define Q_DECLARE_PRIVATE(Class)
FontProperty
This enum describes the properties of a font provided by a font engine.
The QAbstractFontEngine class is the base class for font engine plugins in Qt for Embedded Linux...
Fixed x
The horizontal offset from the origin.
Fixed y
The vertical offset from the origin (baseline).