42 #ifndef QFONTENGINE_MAC_P_H 43 #define QFONTENGINE_MAC_P_H 45 #include <private/qfontengine_p.h> 47 #ifndef QT_MAC_USE_COCOA 75 virtual const char *
name()
const {
return "QFontEngineMac"; }
101 mutable const unsigned char *
cmap;
121 log_clusters(0), charAttributes(0) {}
137 unsigned short *logClusters,
const HB_CharAttributes *charAttributes,
QScriptItem *)
const;
142 virtual const char *
name()
const {
return "ATSUI"; }
155 bool stringToCMapInternal(
const QChar *str,
int len,
QGlyphLayout *glyphs,
int *nglyphs, QTextEngine::ShaperFlags flags,
ShaperItem *item)
const;
157 int fontIndexForFontID(ATSUFontID
id)
const;
171 #endif // QFONTENGINE_MAC_P_H
virtual FaceId faceId() const
virtual void addGlyphsToPath(glyph_t *glyphs, QFixedPoint *positions, int numGlyphs, QPainterPath *path, QTextItem::RenderFlags)
QCFType< CGFontRef > cgFont
#define QT_END_NAMESPACE
This macro expands to.
QFixed m_averageCharWidth
virtual QFixed ascent() const
virtual Type type() const
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
virtual void doKerning(QGlyphLayout *, QTextEngine::ShaperFlags) const
#define at(className, varName)
The QByteArray class provides an array of bytes.
ATSUTextLayout textLayout
QGlyphLayout kashidaGlyph
ATSUFontID macFontID() const
The QChar class provides a 16-bit Unicode character.
void draw(CGContextRef ctx, qreal x, qreal y, const QTextItemInt &ti, int paintDeviceHeight)
virtual ~QFontEngineMac()
virtual glyph_metrics_t boundingBox(const QGlyphLayout &glyphs)
#define QT_BEGIN_NAMESPACE
This macro expands to.
QImage imageForGlyph(glyph_t glyph, int margin, bool colorful)
Helper function for alphaMapForGlyph and alphaRGBMapForGlyph.
static QList< QAxEngineDescriptor > engines
static const QCssKnownValue positions[NumKnownPositionModes - 1]
virtual int synthesized() const
QFontEngineMacMulti * multiEngine
static QFontEngine * loadEngine(int script, const QFontDef &request, QtFontFamily *family, QtFontFoundry *foundry, QtFontStyle *style, QtFontSize *size)
virtual QFixed descent() const
virtual bool stringToCMap(const QChar *str, int len, QGlyphLayout *glyphs, int *numGlyphs, QTextEngine::ShaperFlags flags) const
The QImage class provides a hardware-independent image representation that allows direct access to th...
virtual void getUnscaledGlyph(glyph_t glyph, QPainterPath *path, glyph_metrics_t *metrics)
virtual bool canRender(const QChar *string, int len)
const HB_CharAttributes * charAttributes
virtual const char * name() const
friend class QFontEngineMacMulti
virtual QImage alphaMapForGlyph(glyph_t)
const unsigned char * cmap
const QFontEngineMac * engineAt(int i) const
virtual Properties properties() const
unsigned short * log_clusters
CGAffineTransform transform
virtual QFixed leading() const
QFontEngineMac(ATSUStyle baseStyle, ATSUFontID fontID, const QFontDef &def, QFontEngineMacMulti *multiEngine=0)
static QFixed kerning(int left, int right, const QFontEngine::KernPair *pairs, int numPairs)
virtual QFixed averageCharWidth() const
virtual QFixed xHeight() const
QTextEngine::ShaperFlags flags
struct CGContext * CGContextRef
virtual const char * name() const
virtual QByteArray getSfntTable(uint tag) const
virtual void recalcAdvances(QGlyphLayout *, QTextEngine::ShaperFlags) const
virtual qreal maxCharWidth() const
virtual QImage alphaRGBMapForGlyph(glyph_t, QFixed subPixelPosition, int margin, const QTransform &t)
CGAffineTransform transform