On 4/20/06, Ron Savage <[EMAIL PROTECTED]> wrote:
> On Thu, 20 Apr 2006 14:28:10 -0400, Gabe Schaffer wrote:
> >> I thought I could modify my type-windows.mgk but it doesn't seem
> >> to work... magick++ returns "UnableToReadFont".
>
> There is no need to edit any ImageMagick files, at least for Perl :-).

Indeed, I've never even heard of the type-windows.mgk file before. Of
course the Magick++ interfaces are different, and may not make use of
font names in the same way.

> > Does it work if you pass the complete name ("c:\myfonts\font.ttf")
> > as the font name?
>
> That works. I used c:\winnt\fonts\cry.ttf, for the font named 'Cry Uncial',
> since the file name is cry.ttf.

I was asking Farouk that question. If it doesn't work, that may
indicate that the font is corrupt or in the wrong format. It is also
possible that he's using the wrong overload for setting the font name.

> However, because the font name has a space in it, I had to say
> (in Perl's Annotate method call) font => 'Cry-Uncial'. Notice how the space is
> replaced by a hyphen to get the font name (not file name) recognized.

This is not because the font has a space in it, but because IM font
names do not correspond directly with the font display names. Running
"identify -list type" will show how they correlate. The first column
is the one you want to use as the "font name".

> Note: When the font cannot be found, IM reverts to a generic font which is
> shipped with IM.

I believe that the generic font is specific to PerlMagick.

GNS

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to