mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-07-05 07:12:51 +02:00
Yet another text path algorithm fix
Floor the font sizes
This commit is contained in:
@ -122,7 +122,9 @@ static QPainterPath textPath(const QPainterPath &path, qreal textWidth,
|
||||
angle = a;
|
||||
}
|
||||
|
||||
return QPainterPath();
|
||||
return (length > textWidth)
|
||||
? subpath(lines, last, lines.size() - 1, length - textWidth)
|
||||
: QPainterPath();
|
||||
}
|
||||
|
||||
static bool reverse(const QPainterPath &path)
|
||||
|
Reference in New Issue
Block a user