Fixed text path bounding rect

This commit is contained in:
Martin Tůma 2018-11-06 08:26:58 +01:00
parent 85817ec135
commit f376a9235a

View File

@ -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();
} }