예제 #1
0
        private static void DrawLines(SvgTextBase txt, ISvgRenderer renderer, float x, float y, Pen pen)
        {
            var lines      = txt.Text.Split('\n');
            var b          = txt.Bounds;
            var lineHeight = txt.Bounds.Height / lines.Length;

            for (int lineNumber = 0; lineNumber < lines.Length; lineNumber++)
            {
                renderer.DrawText(lines[lineNumber], x, y + (lineHeight * lineNumber), pen);
            }
        }