Fix QPainterPath with QFont::SmallCaps
QGIS is impacted by this
--
Previous code was getting the QFontEngine from the font+script instead of from the QTextEngine.
The font+script is not enough information to know if a given character is smallcaps or not, while the QTextEngine actually has access to the information needed and returns a properly a scaled fontengine if character is small caps
Pick-to: 6.2
Fixes: QTBUG-13965
Change-Id: I9f95bd2f3c3bdff76c3acb94fa2edc99cdeb0a13
Reviewed-by: Allan Sandfeld Jensen allan.jensen@qt.io (cherry picked from commit c89c1456)