mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Fixed text path bounding rect
This commit is contained in:
parent
85817ec135
commit
f376a9235a
@ -10,6 +10,7 @@ TextPathItem::TextPathItem(const QString &text, const QPainterPath &path,
|
|||||||
QFontMetrics fm(font);
|
QFontMetrics fm(font);
|
||||||
QPainterPathStroker s;
|
QPainterPathStroker s;
|
||||||
s.setWidth(fm.height());
|
s.setWidth(fm.height());
|
||||||
|
s.setCapStyle(Qt::FlatCap);
|
||||||
_shape = s.createStroke(path).simplified();
|
_shape = s.createStroke(path).simplified();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user