42 #ifndef QFONTENGINE_CORETEXT_P_H 43 #define QFONTENGINE_CORETEXT_P_H 45 #include <private/qfontengine_p.h> 48 #include <CoreText/CoreText.h> 49 #include <CoreGraphics/CoreGraphics.h> 50 #include <private/qcore_mac_p.h> 53 #if !defined(Q_WS_MAC) || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5) 84 virtual const char *
name()
const {
return "QCoreTextFontEngine"; }
127 QTextEngine::ShaperFlags flags)
const;
129 QTextEngine::ShaperFlags flags,
130 unsigned short *logClusters,
const HB_CharAttributes *charAttributes,
133 virtual const char *
name()
const {
return "CoreText"; }
140 void init(
bool kerning);
144 uint fontIndexForFont(CTFontRef font)
const;
158 #endif// !defined(Q_WS_MAC) || (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5) 160 #endif // QFONTENGINE_CORETEXT_P_H virtual QFixed ascent() const
virtual qreal minLeftBearing() const
virtual FaceId faceId() const
QImage imageForGlyph(glyph_t glyph, QFixed subPixelPosition, int margin, bool colorful)
const QCoreTextFontEngine * engineAt(int i) const
virtual QFontEngine * cloneWithSize(qreal pixelSize) const
#define QT_END_NAMESPACE
This macro expands to.
friend class QCoreTextFontEngineMulti
virtual bool getSfntTableData(uint, uchar *, uint *) const
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
QCoreTextFontEngine(CTFontRef font, const QFontDef &def)
#define at(className, varName)
virtual qreal minRightBearing() const
virtual QImage alphaRGBMapForGlyph(glyph_t, QFixed subPixelPosition, int margin, const QTransform &t)
virtual QFixed averageCharWidth() const
CGAffineTransform transform
The QChar class provides a 16-bit Unicode character.
virtual qreal maxCharWidth() const
virtual QFixed xHeight() const
QCFType< CFMutableDictionaryRef > attributeDict
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int numGlyphs, QPainterPath *path, QTextItem::RenderFlags)
static float pixelSize(const QFontDef &request, int dpi)
static QList< QAxEngineDescriptor > engines
static const QCssKnownValue positions[NumKnownPositionModes - 1]
CTFontRef macFontID() const
virtual bool supportsSubPixelPositions() const
static QFontEngine * loadEngine(int script, const QFontDef &request, QtFontFamily *family, QtFontFoundry *foundry, QtFontStyle *style, QtFontSize *size)
virtual bool canRender(const QChar *string, int len)
virtual void recalcAdvances(QGlyphLayout *, QTextEngine::ShaperFlags) const
virtual void getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics)
The QImage class provides a hardware-independent image representation that allows direct access to th...
virtual const char * name() const
virtual Type type() const
CGAffineTransform transform
virtual QImage alphaMapForGlyph(glyph_t, QFixed subPixelPosition)
virtual QFixed leading() const
void draw(CGContextRef ctx, qreal x, qreal y, const QTextItemInt &ti, int paintDeviceHeight)
virtual QFixed descent() const
CGAffineTransform qt_transform_from_fontdef(const QFontDef &fontDef)
static QFixed kerning(int left, int right, const QFontEngine::KernPair *pairs, int numPairs)
virtual QFixed emSquareSize() const
virtual bool stringToCMap(const QChar *str, int len, QGlyphLayout *glyphs, int *nglyphs, QTextEngine::ShaperFlags flags) const
struct CGContext * CGContextRef
virtual int synthesized() const
virtual const char * name() const
virtual glyph_metrics_t boundingBox(const QGlyphLayout &glyphs)