On Wed, 26 Dec 2007, M. M. Peters wrote:
> Hi:
>
> Any takers?
>
> Are there any specific configure flags that are
"must-haves" on the command
> line?
This problem seems to be simply due to not finding a font
file.
GraphicsMagick and Cygwin can not provide these font files
since they
are copyrighted by Microsoft. Cygwin is like real
"Unix" so the
Cygwin build does not use the Windows registry to find the
location of
native Windows font files.
See /usr/local/lib/GraphicsMagick-1.1/type-windows.mgk for
the listing
of Windows fonts that GraphicsMagick is aware of.
It seems likely that adding the GraphicsMagick configure
option
--with-windows-font-dir=/cygdrive/c/WINDOWS/Fonts
will help GraphicsMagick find the Windows font files where
they live,
but the actual location may vary based on Windows version.
An alternative is to simply create the directory
/usr/share/fonts/default/TrueType and copy the Windows font
files
listed in 'type-windows.mgk' to that directory.
Bob
>
> ---------- Forwarded message ----------
> From: Tim Hunter <TimHunter nc.rr.com>
> Date: Dec 26, 2007 3:16 PM
> Subject: Re: RMagick src install on Cygwin?
> To: ruby-talk ML <ruby-talk ruby-lang.org>
>
>
> M. M. Peters wrote:
>> Hi:
>>
>>
>> Has anyone had success installing RMagick on
Cygwin? I'm having an issue
>> with RMagick seeing my fonts:
>>
>>
>> PreserveAspectRatio.rb:204
>> post-setup.rb: PreserveAspectRatio.rb
>> example returned error code 256
>> /usr/bin/ruby -I
>> /usr/lib/ruby/gems/1.8/gems/rmagick-1.15.7/./lib
-I
>>
/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.7/./ext/RMagick
RotateScale.rb
>>
/usr/lib/ruby/gems/1.8/gems/rmagick-1.15.7/./lib/rvg/misc.rb
:321:in
>> `get_type_metrics': unable to read font
>> `/usr/share/fonts/default/TrueType/verdana.ttf'
>> (Magick::ImageMagickError)
>>
>>
>> Instead of ImageMagick, I'm using GraphicsMagick,
which shouldn't be an
>> issue. At one point I used both and still had
trouble.
>>
>
> Try this command from a shell prompt:
>
> convert label:abcdef test.gif
>
> If you get the "unable to read font" message,
report the problem to the
> ImageMagick forum.
>
>
> --
> RMagick: http://rmagick.rubyforg
e.org/
>
======================================
Bob Friesenhahn
bfriesen simple.dallas.tx.us, http://w
ww.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMag
ick.org/
------------------------------------------------------------
-------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
a>
_______________________________________________
Graphicsmagick-help mailing list
Graphicsmagick-help lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gra
phicsmagick-help
|