Back to API Reference
Class
ArcModifier
sealed
Inherits:BaselineCurveModifier<Shape,Ring>
Places glyphs on concentric circular arcs while preserving each glyph's shape.
Remarks
The circle is authored one of two ways, and they mean different things. Left at
Fill, Circle says nothing and the sweep decides: the radius becomes the one that makes the range span exactly Angle, the bend happens where the layout put the text, and Origin chooses the point that stays put. A label then holds its sweep and flattens as its text grows. Given a box of its own, Circle takes over: the circle inscribed in that box is the rail the text rides, and the text is laid on the near side of it. The box is placed against the text's layout box the way any RectPlacement is placed against its parent, so the rail belongs to the artwork rather than to the text — no change of font size, line metric or line count moves it, which is what a label on a fixed ring needs. Its turn carries the text round the circle, which is what a turn can mean to a shape that has no orientation of its own. Angle and Origin are then unused: nothing is bent about a point. The circle is also what the text is laid out in: its circumference is offered as the width, so wrapping, ellipsis and auto-sizing measure against the arc the circle has rather than against a box the text no longer occupies, and the text sits where its alignment puts it along that circumference — centred at the top of the circle, carried round from there by the turn. A range still wider than the circle laps and crosses itself, which auto-sizing is the cure for; a wrapped tail lands on the next concentric ring. Ranges of every arc modifier resolve into one per-cluster axis, so a glyph rides the arc of the range applied last rather than being bent once per modifier.Nested Types
SS
Ring
The circle one line rides, and the turn one unit of its baseline costs on it: where the circle stands across, which point of the baseline lands at the top of it, and how far the line is lifted onto it. No turn at all leaves the line straight, which is what a ring collapsed onto the centre is rendered as.
Shape
The sweep a range was authored with, and the point it bends from.
public ArcOrigin Origin{ get; set }Which point of the range stays on its straight baseline while the rest turns away from it. Unused while Circle carries a box of its own.
