PeachDrawing.Core
PeachDrawing.Core
PathText Class
Text set along a path: each glyph is placed at its own distance along the path and turned to follow it, using the shaper’s glyphs and advances, so ligatures, kerning and other shaping survive.
public static class PathText
Inheritance System.Object → PathText
| Methods | |
|---|---|
| DrawStringAlongPath(this Canvas, string, Typeface, double, PaintColor, GraphicsPath, PathTextOptions) | Draws text along path in one colour. See Layout(Typeface, double, string, PathMeasure, PathTextOptions) for how it is placed. |
| GetGlyphFrame(PathMeasure, double, PathTextSide, double, double) | The transform that puts a glyph centred on a point of a path and turns it to follow the path there. In the glyph’s own space the origin is the glyph’s centre on its baseline. |
| Layout(Typeface, double, string, PathMeasure, PathTextOptions) | Shapes text and places each glyph along path. A glyph whose centre falls off either end of the path is left out. |