Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

QWindowsFontEngineDirectWrite Class

Windows font engine using Direct Write. More...

 #include <QWindowsFontEngineDirectWrite>

Inherits: QObject.

Public Functions

QWindowsFontEngineDirectWrite(IDWriteFontFace * directWriteFontFace, qreal pixelSize, const QSharedPointer<QWindowsFontEngineData> & d)
~QWindowsFontEngineDirectWrite()
void initFontInfo(const QFontDef & request, int dpi, IDWriteFont * font)

Reimplemented Public Functions

virtual void addGlyphsToPath(glyph_t * glyphs, QFixedPoint * positions, int nglyphs, QPainterPath * path, QTextItem::RenderFlags flags)
virtual QImage alphaMapForGlyph(glyph_t glyph, QFixed subPixelPosition)
virtual QImage alphaRGBMapForGlyph(glyph_t t, QFixed subPixelPosition, const QTransform & xform)
virtual QFixed ascent() const
virtual glyph_metrics_t boundingBox(const QGlyphLayout & glyphs)
virtual glyph_metrics_t boundingBox(glyph_t g)
virtual bool canRender(const QChar * string, int len)
virtual QFontEngine * cloneWithSize(qreal pixelSize) const
virtual QFixed descent() const
virtual QFixed emSquareSize() const
virtual bool getSfntTableData(uint tag, uchar * buffer, uint * length) const
virtual QFixed leading() const
virtual QFixed lineThickness() const
virtual qreal maxCharWidth() const
virtual const char * name() const
virtual void recalcAdvances(QGlyphLayout * glyphs, QTextEngine::ShaperFlags) const
virtual bool stringToCMap(const QChar * str, int len, QGlyphLayout * glyphs, int * nglyphs, QTextEngine::ShaperFlags flags) const
virtual bool supportsSubPixelPositions() const
virtual Type type() const
virtual QFixed xHeight() const
  • 31 public functions inherited from QObject

Static Public Members

QString fontNameSubstitute(const QString & familyName)
  • 11 static public members inherited from QObject

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 2 signal inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

Windows font engine using Direct Write.

Font engine for subpixel positioned text on Windows Vista (with platform update) and Windows 7. If selected during configuration, the engine will be selected only when the hinting preference of a font is set to None or Vertical hinting. The font database uses most of the same logic but creates a direct write font based on the LOGFONT rather than a GDI handle.

The engine is currently regarded as experimental, meaning that code using it should do substantial testing to make sure it covers their use cases.

Will probably be superseded by a common Free Type font engine in Qt 5.X.

Member Function Documentation

QWindowsFontEngineDirectWrite::QWindowsFontEngineDirectWrite(IDWriteFontFace * directWriteFontFace, qreal pixelSize, const QSharedPointer<QWindowsFontEngineData> & d)

QWindowsFontEngineDirectWrite::~QWindowsFontEngineDirectWrite()

void QWindowsFontEngineDirectWrite::addGlyphsToPath(glyph_t * glyphs, QFixedPoint * positions, int nglyphs, QPainterPath * path, QTextItem::RenderFlags flags) [virtual]

QImage QWindowsFontEngineDirectWrite::alphaMapForGlyph(glyph_t glyph, QFixed subPixelPosition) [virtual]

QImage QWindowsFontEngineDirectWrite::alphaRGBMapForGlyph(glyph_t t, QFixed subPixelPosition, const QTransform & xform) [virtual]

QFixed QWindowsFontEngineDirectWrite::ascent() const [virtual]

glyph_metrics_t QWindowsFontEngineDirectWrite::boundingBox(const QGlyphLayout & glyphs) [virtual]

glyph_metrics_t QWindowsFontEngineDirectWrite::boundingBox(glyph_t g) [virtual]

bool QWindowsFontEngineDirectWrite::canRender(const QChar * string, int len) [virtual]

QFontEngine * QWindowsFontEngineDirectWrite::cloneWithSize(qreal pixelSize) const [virtual]

QFixed QWindowsFontEngineDirectWrite::descent() const [virtual]

QFixed QWindowsFontEngineDirectWrite::emSquareSize() const [virtual]

QString QWindowsFontEngineDirectWrite::fontNameSubstitute(const QString & familyName) [static]

bool QWindowsFontEngineDirectWrite::getSfntTableData(uint tag, uchar * buffer, uint * length) const [virtual]

void QWindowsFontEngineDirectWrite::initFontInfo(const QFontDef & request, int dpi, IDWriteFont * font)

QFixed QWindowsFontEngineDirectWrite::leading() const [virtual]

QFixed QWindowsFontEngineDirectWrite::lineThickness() const [virtual]

qreal QWindowsFontEngineDirectWrite::maxCharWidth() const [virtual]

const char * QWindowsFontEngineDirectWrite::name() const [virtual]

void QWindowsFontEngineDirectWrite::recalcAdvances(QGlyphLayout * glyphs, QTextEngine::ShaperFlags) const [virtual]

bool QWindowsFontEngineDirectWrite::stringToCMap(const QChar * str, int len, QGlyphLayout * glyphs, int * nglyphs, QTextEngine::ShaperFlags flags) const [virtual]

bool QWindowsFontEngineDirectWrite::supportsSubPixelPositions() const [virtual]

Type QWindowsFontEngineDirectWrite::type() const [virtual]

QFixed QWindowsFontEngineDirectWrite::xHeight() const [virtual]

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web