If use
XGraphics.DrawString over
XGraphicsPath.AddString for drawing text with spaces. First words match, but the following words move out.
Code:
private static void Draw_Text_With_OUTER_line(ref PdfPage dst_page, string text, XFont xfont, XPen x_pen, XBrush x_brush, XStringFormat x_sf, XRect xr)
{
XGraphics gfx = XGraphics.FromPdfPage(dst_page);
XGraphicsPath path = new XGraphicsPath();
path.AddString(text, xfont.FontFamily, xfont.Style, xfont.Size, xr, x_sf);
gfx.DrawPath(x_pen, x_brush, path);
gfx.DrawString(text, xfont, x_brush, xr, x_sf);
gfx.Dispose();
}
Trying with "Arial" and "Times new roman" fonts.
Me need it for drawing text with outside outline.
May be tell me another way, for drawing innerside and outside text outline?