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>
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);