Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.15.7, 6.2.1
-
None
Description
QRectF QQuickText::clipRect() const { Q_D(const QQuickText); QRectF rect = QQuickImplicitSizeItem::clipRect(); if (d->style != Normal) rect.adjust(-1, 0, 1, 2); return rect; }
That looks suspicious, and is not enough in practice: the outline can be wider than 1 pixel, depending on the last character in the string. Either we should make it avoid clipping the outline in every case, or else take out this adjustment and add a documentation warning that if you use clipping and text style together, the result will not look good. That would simplify the code: we could avoid overriding clipRect() at all, and therefore would not need to add documentation explaining how and why it makes it larger.
On the other hand, maybe this issue doesn't happen much in practice, whereas removing the adjustment might make it happen more easily, and some users would see it as a regression.
Attachments
Issue Links
- relates to
-
QTBUG-32750 Glyphs with "style: Text.outline" get clipped below a certain font size
- Closed