mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-01-18 12:02:10 +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);
|
||||
QPainterPathStroker s;
|
||||
s.setWidth(fm.height());
|
||||
s.setCapStyle(Qt::FlatCap);
|
||||
_shape = s.createStroke(path).simplified();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user