SkiaSharp Web · Geometry

Curves, not sampled polylines.

Explore native stroke expansion, preserved glyph contours, and encoded text measurements through the same reusable canvas component.

Loading the runtime and fonts…

Executed API

const outline = font.GetTextPathOnPath(text, followPath, alignment);
canvas.DrawPath(outline, textPaint);

const fill = strokePaint.GetFillPath(followPath, cullRect, matrix);
canvas.DrawPath(fill, fillPaint);

const measured = {};
const byteCount = font.BreakText(utf8, SKTextEncoding.Utf8, 150, measured);

Native geometry and text results

Waiting for the first paint event.

Native PDF strict-vector output rejects unsupported raster effects. Text-on-path uses the pinned .NET first-contour behavior; this sample does not claim every overload or every font is certified.