Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1011

Commented Issue: Color issue with Pango [1347]

$
0
0
Hi,

First off, thanks for this library, it's been a great help so far.

We've noted that there seems to be a bug with Pango and colors.

```
public static MagickImage TestPangoColors()
{
MagickImage image = new MagickImage(MagickColor.Transparent, 500, 500);
image.FontPointsize = 80;
image.BackgroundColor = MagickColor.Transparent;
image.Font = "Arial";
image.Format = MagickFormat.Png;
String pangoString = "pango:<span fgcolor=\"#545251\">TEST</span>";
image.Read(pangoString);

return image;
}
```
The result is white text instead of gray. There are certain colors which seem to work, e.g. specifying fgcolor="red" works. Same goes for fgcolor="#FF00FF", which gives purple.

Could this be an issue with the pango library bundled with the dll? The same code works well from the imagemagick command line.

```
convert -background white -gravity center -size 300x -font Arial pango:"<span underline='none' weight='400' style='normal' fgcolor='red'>TEST</span>" win:
```
We're using the following versions of ImageMagick.

```
<packages>
<package id="Magick.NET-Q16-AnyCPU" version="7.0.0.0011" targetFramework="net45" />
<package id="Magick.NET-Q16-AnyCPU.Sample" version="7.0.0.0011" targetFramework="net45" />
<package id="Magick.NET-Q8-AnyCPU" version="7.0.0.0011" targetFramework="net45" />
</packages>
```

Please let me know if you need any further information.
Comments: You're right, I am using ImageMagick-6.9.0-Q16 Many thanks - may I ask when is the next release due?

Viewing all articles
Browse latest Browse all 1011

Trending Articles



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