private static void DrawText(string text, IPath path) { FontFamily fam = SystemFonts.Get("Arial"); var font = new Font(fam, 30); TextOptions textOptions = new(font) { WrappingLength = path.ComputeLength(), VerticalAlignment = VerticalAlignment.Top, HorizontalAlignment = HorizontalAlignment.Center, }; IPathCollection glyphs = TextBuilder.GenerateGlyphs(text, path, textOptions); glyphs.SaveImage("Text-Path", text + ".png"); }