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

Commented Unassigned: Unable to Annotate on Windows 2003 [1370]

$
0
0
Using the code below works fine on windows 2008 and above but on windows 2003 the call to Annotate generates a warning in the debug log and no text is written on the image

unable to read font `c:\windows\arial.ttf' @ error/annotate.c/RenderFreetype/1177. (Note the path should be c:\windows\fonts...)

changing the font to have a full path to the font file does not help and produces

unable to read font `c:\WINDOWS\Fonts\arial.ttf' @ warning/annotate.c/RenderType/917.
unable to read font `c:\windows\arial.ttf' @ error/annotate.c/RenderFreetype/1177.

```
Using d As MagickImage = New MagickImage("c:\temp\1.jpg")
d.Debug = True
d.Font = "arial"
d.FillColor = New MagickColor(Drawing.Color.White)
d.FontPointsize = 25
d.TextUnderColor = New MagickColor(Drawing.Color.Red)
d.Annotate("Anon", Gravity.Southeast)
d.Format = MagickFormat.Jpeg
d.CompressionMethod = CompressionMethod.JPEG
d.Quality = 90
d.Interlace = Interlace.NoInterlace
d.Write("c:\temp\2.jpg")
End Using
```

The same happens with all fonts I tried
Comments: Thanks for the detailed information. Your debug logs look really odd. It contains error message about a PDF file that is being read. Could you create a log with the just code from my example? Is it possible that you have some kind of permission issue on your Windows 2003 machine? Maybe the application does not have the correct permission to read the font file?

Viewing all articles
Browse latest Browse all 1011

Trending Articles



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