23 {
26 QLineF line;
28 outline = outline.toReversed();
29 }
32 outline.percentAtLength(index.textPathInfo()->startOffset);
34 percent = fmod(percent, 1.0);
35 } else {
36 percent = qBound(0.0, percent, 1.0);
37 }
38 line.setP1(outline.pointAtPercent(percent));
39 line.setAngle(outline.angleAtPercent(percent) - 90);
40 line.setLength(lineLength);
41 return line;
42 }
The position of a path point within a path shape.
bool isClosedSubpath(int subpathIndex) const
Checks if a subpath is closed.
QPainterPath outline() const override
reimplemented
int subpathCount() const
Returns the number of subpaths in the path.
QTransform transformation() const
Returns the shapes local transformation matrix.
KoShape * textPath()
textPath
KoSvgText::TextOnPathInfo * textPathInfo()
textPathInfo the text path info for this node as a pointer.
bool startOffsetIsPercentage