コード例 #1
0
        /// <summary>
        /// Prepares and renders, with customized line starts and lengths.
        /// </summary>
        public TextRenderInfo Render(IFill fill, ICanvas canvas, string text, float fontSize,
                                     TextOptions optons, Vector2f[] lineStarts, float[] lineLengths)
        {
            TextRenderInfo info = Prepare(canvas, text, fontSize, optons,
                                          lineStarts, lineLengths);

            info.Render(fill);
            return(info);
        }
コード例 #2
0
        // TODO: other preparations

        /// <summary>
        /// Prepares and renders, with rectange range.
        /// </summary>
        public TextRenderInfo Render(IFill fill, ICanvas canvas, string text, float fontSize,
                                     TextOptions options, float lineSpacing, Vector2f leftBottom, Vector2f size)
        {
            TextRenderInfo info = Prepare(canvas, text, fontSize, options, lineSpacing,
                                          leftBottom, size);

            info.Render(fill);
            return(info);
        }