I'm seeing some really inconsistent behavior with Magick.NET and Pango image captioning.
One deals with encoding special characters when using Pango. In this example, "<>" has already been HTML encoded, yet it still crashes?
Also, if you use a super long string with Pango, Magick.NET is also crashing. Attached is a VS 2015 console application project that demonstrates 3 crashes and 1 success. It doesn't make much sense.
https://drive.google.com/open?id=0B6zvIi1Z7g8ibjFQRmJpcDkyek0
One deals with encoding special characters when using Pango. In this example, "<>" has already been HTML encoded, yet it still crashes?
var imageWithText = new MagickImage();
var settings = new MagickReadSettings()
{
FontPointsize = 42,
FontWeight = FontWeight.Thin,
Width = 980
};
imageWithText.Read("pango:<span font='Arial'><></span>", settings);
The same encoded string works fine from the command line.Also, if you use a super long string with Pango, Magick.NET is also crashing. Attached is a VS 2015 console application project that demonstrates 3 crashes and 1 success. It doesn't make much sense.
https://drive.google.com/open?id=0B6zvIi1Z7g8ibjFQRmJpcDkyek0