Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Pango Caption Bugs with Escaping and Long Text

$
0
0
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?
                var imageWithText = new MagickImage();
                var settings = new MagickReadSettings()
                {
                    FontPointsize = 42,
                     FontWeight = FontWeight.Thin,
                    Width = 980
                };

                imageWithText.Read("pango:<span font='Arial'>&lt;&gt;</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

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>