From 50120efc506fa918ac4c9e997a108a7fa6e44c55 Mon Sep 17 00:00:00 2001 From: Eirik Aavitsland Date: Thu, 20 Oct 2022 15:03:44 +0200 Subject: Doc: Add possible fill rule requirement for QPainterPath text drawing Task-number: QTBUG-107782 Change-Id: I75b77f076123fb659220ebfb0b9240a412de4cd5 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/gui/painting/qpainterpath.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gui/painting') diff --git a/src/gui/painting/qpainterpath.cpp b/src/gui/painting/qpainterpath.cpp index 851df3e7ae..69473ef0f4 100644 --- a/src/gui/painting/qpainterpath.cpp +++ b/src/gui/painting/qpainterpath.cpp @@ -1135,6 +1135,9 @@ void QPainterPath::addEllipse(const QRectF &boundingRect) that the left end of the text's baseline lies at the specified \a point. + Some fonts may yield overlapping subpaths and will require the + \c Qt::WindingFill fill rule for correct rendering. + \table 100% \row \li \inlineimage qpainterpath-addtext.png @@ -1143,7 +1146,7 @@ void QPainterPath::addEllipse(const QRectF &boundingRect) \endtable \sa QPainter::drawText(), {QPainterPath#Composing a - QPainterPath}{Composing a QPainterPath} + QPainterPath}{Composing a QPainterPath}, setFillRule() */ void QPainterPath::addText(const QPointF &point, const QFont &f, const QString &text) { -- cgit v1.2.3