Adjusted text path placement

This commit is contained in:
Martin Tůma 2018-10-31 19:32:30 +01:00
parent 447aa9bb22
commit df40c06afc

View File

@ -36,7 +36,7 @@ void TextPathItem::paint(QPainter *painter,
painter->translate(point); painter->translate(point);
painter->rotate(-angle); painter->rotate(-angle);
painter->drawText(QPoint(0, 0), _text.at(i)); painter->drawText(QPoint(0, fm.descent()), _text.at(i));
painter->resetTransform(); painter->resetTransform();
int width = fm.charWidth(_text, i); int width = fm.charWidth(_text, i);