decorations |= (backgroundColor.isValid() ? QQuickTextNode::Background : QQuickTextNode::NoDecoration);
qreal ascent = glyphRun.rawFont().ascent();
- // ### QTBUG-22919 The bounding rect returned by QGlyphRun appears to start on the
- // baseline, move it by the ascent so all bounding rects are at baseline - ascent.
- searchRect.translate(0, -ascent);
insert(binaryTree, BinaryTreeNode(glyphRun, selectionState, searchRect, decorations,
textColor, backgroundColor, position, ascent));
}