I'm using the Magick.NET-Q8-AnyCPU Nuget package latest version 7.0.4.701
I'm trying to use the .TextInterwordSpacing feature, but it seems to have no effect.
Reading the forums, I see this stopped working at some point in the command line version and was then fixed. I'm wondering if I need a different version of the Nuget package, or am I doing something wrong? Below is my code, slightly modified from the Drawing demo:
Code: Select all
using (MagickImage image = new MagickImage(new MagickColor("#ffffff"), 520, 111))
{
new Drawables()
// Draw text on the image
.FontPointSize(70)
.Font("Arial")
//.StrokeColor(new MagickColor("black"))
.FillColor(MagickColors.Black)
.TextAlignment(TextAlignment.Center)
.TextInterwordSpacing(33) // This has no effect
.Text(260, 80, "first second")
// Add an ellipse
//.StrokeColor(new MagickColor(0, Quantum.Max, 0))
//.FillColor(MagickColors.SaddleBrown)
//.Ellipse(256, 96, 192, 8, 0, 360)
.Draw(image);
pictureBox1.Image = image.ToBitmap();
pictureBox1.Size = new Size(image.Width, image.Height);
}
I would most appreciate any help.
Thank you, Paul