diff options
author | Yoann Lopes <yoann.lopes@digia.com> | 2013-10-30 18:03:23 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-09 21:48:32 +0100 |
commit | bed4d0de7e4bf57dd70e44be28eb361b4f4fe9e2 (patch) | |
tree | 3a6e9dbc4ecedb72d68dac270696cf733da59fee /src | |
parent | 4662e632e4f92b335483b91cd1f3576d6d82146f (diff) |
Fallback to native font rendering for bitmap fonts.
Distance field rendering requires glyph outlines, which are not
available for bitmap fonts.
Task-number: QTBUG-32737
Change-Id: I64569e4e6b2285ca998b5f80ec31ab04cf1f3d09
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/quick/items/qquicktextnode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/quick/items/qquicktextnode.cpp b/src/quick/items/qquicktextnode.cpp index 6acfaaf396..dd314c892d 100644 --- a/src/quick/items/qquicktextnode.cpp +++ b/src/quick/items/qquicktextnode.cpp @@ -143,7 +143,8 @@ QSGGlyphNode *QQuickTextNode::addGlyphs(const QPointF &position, const QGlyphRun QSGNode *parentNode) { QSGRenderContext *sg = QQuickItemPrivate::get(m_ownerElement)->sceneGraphRenderContext(); - QSGGlyphNode *node = m_useNativeRenderer + QRawFontPrivate *fontP = QRawFontPrivate::get(glyphs.rawFont()); + QSGGlyphNode *node = m_useNativeRenderer || !fontP->fontEngine->smoothScalable ? sg->sceneGraphContext()->createNativeGlyphNode(sg) : sg->sceneGraphContext()->createGlyphNode(sg); node->setOwnerElement(m_ownerElement); |