diff options
Diffstat (limited to 'src/gui/text/qfontenginedirectwrite_p.h')
-rw-r--r-- | src/gui/text/qfontenginedirectwrite_p.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gui/text/qfontenginedirectwrite_p.h b/src/gui/text/qfontenginedirectwrite_p.h index 80f90b8..c440a6c 100644 --- a/src/gui/text/qfontenginedirectwrite_p.h +++ b/src/gui/text/qfontenginedirectwrite_p.h @@ -69,10 +69,8 @@ class QFontEngineDirectWrite : public QFontEngine { Q_OBJECT public: - explicit QFontEngineDirectWrite(const QString &name, - IDWriteFactory *directWriteFactory, - IDWriteGdiInterop *directWriteGdiInterop, - IDWriteFont *directWriteFont, + explicit QFontEngineDirectWrite(IDWriteFactory *directWriteFactory, + IDWriteFontFace *directWriteFontFace, qreal pixelSize); ~QFontEngineDirectWrite(); @@ -107,15 +105,14 @@ public: Type type() const; private: + friend class QRawFontPrivate; + QImage imageForGlyph(glyph_t t, QFixed subPixelPosition, int margin, const QTransform &xform); void collectMetrics(); - QString m_name; - IDWriteFont *m_directWriteFont; IDWriteFontFace *m_directWriteFontFace; IDWriteFactory *m_directWriteFactory; IDWriteBitmapRenderTarget *m_directWriteBitmapRenderTarget; - IDWriteGdiInterop *m_directWriteGdiInterop; QFixed m_lineThickness; int m_unitsPerEm; |