Error/annotate.c/renderfreetype
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and imagick_type_gen policies of this site About Us Learn more about Stack Overflow the convert: unable to read font company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Imagemagick Osx Fonts
Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes
Rmagick Unable To Read Font `(null)'
a minute: Sign up ImageMagick: Error while running convert: convert: unable to read font up vote 71 down vote favorite 13 I'm on Mountain Lion and installed ImageMagick using Homebrew (minimagick is also in my Gemfile but I don't think that's relevant). SimpleCaptcha uses it in a Rails app to create CAPTCHAs. However, the image isn't created cause of this error: gm convert unable to read font Error while running convert: convert: unable to read font `/usr/local/share/ghostscript/fonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1123. convert: Postscript delegate failed `/var/folders/gd/n7rzfhkd5jd0ws8jnzsz34hr0000gn/T/magick-vzHHz4ZP': No such file or directory @ error/ps.c/ReadPSImage/830. convert: no images defined `/var/folders/gd/n7rzfhkd5jd0ws8jnzsz34hr0000gn/T/simple_captcha20121218-64930-1thtfpf.jpg' @ error/convert.c/ConvertImageCommand/3032. Any ideas? imagemagick osx-mountain-lion share|improve this question asked Dec 18 '12 at 15:31 Agis 15.7k22951 add a comment| 1 Answer 1 active oldest votes up vote 154 down vote accepted Looks like you're missing ghostscript. If you are using Homebrew you can install it via: $ brew install ghostscript share|improve this answer edited Mar 24 '14 at 19:09 Agis 15.7k22951 answered Dec 18 '12 at 15:38 cfeduke 17.7k74662 Thanks! I was totally missing the point. –Agis Dec 18 '12 at 15:46 3 Sometimes you have ghostscript but it's just not linked! $ brew unlink ghostscript && brew link ghostscript –GantMan Nov 7 '14 at 4:40 9 This also works when the error message doesn't specifiy the missing font, as in convert: unable to read font `(null)' @ error/annotate.c/RenderFreetype/1153 –LeEnno Jun 15 '15 at 9:15 add a comment| Your Answer draft saved draft discarded Sign up
here for a quick overview of the site Help Center
Imagemagick No Fonts
Detailed answers to any questions you might have Meta brew imagemagick fonts Discuss the workings and policies of this site About Us Learn more about Stack Overflow osx imagemagick font the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x http://stackoverflow.com/questions/13936256/imagemagick-error-while-running-convert-convert-unable-to-read-font Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Rmagick unable to read font up vote 12 down vote favorite 2 I have a piece of code http://stackoverflow.com/questions/28043993/rmagick-unable-to-read-font that draws text on top of an image in my Rails app and since short while ago, probably having to to with upgrading to OS X Yosemite, it's having an issue with reading fonts on my local machine (production server is working fine). I can reduce it to this example: require 'rvg/rvg' font = '"/Users/xxxxxxxx/xxxx/app/assets/fonts/PTSans-Regular.ttf"' rvg = Magick::RVG.new(100,100) do |canvas| canvas.text(0, 0, 'my text').styles(font: font) end rvg.draw I get this error Magick::ImageMagickError: unable to read font `"/Users/xxxxxxxx/xxxx/app/assets/fonts/PTSans-Regular.ttf"' @ error/annotate.c/RenderFreetype/1153: `(null)' from /Users/xxxxxxxx/.rvm/gems/ruby-2.0.0-p353@xxxxxxxx/gems/rmagick-2.13.2/lib/rvg/misc.rb:322:in `get_type_metrics' I tried reinstalling imagemagick and the rmagick gem, also with these flags: brew install imagemagick --disable-openmp --build-from-source Also, if I change font = "/Users/xxxxxx/xxxxx/app/assets/fonts/PTSans-Regular.ttf" thinking that the extra quotes could get in the way, then I get Magick::ImageMagickError: non-conforming drawing primitive definition `Users/xxxxx/xxxx/app/assets/fonts/PTSans-Regular.ttf' @ error/draw.c/DrawImage/3170 from /Users/xxxxxxx/.rvm/gems/ruby-2.0.0-p353@xxxx/gems/rmagick-2.13.2/lib/rvg/misc.rb:546:in `draw' I have also tried to install the latest version of XQuartz
Sign in Pricing Blog Support Search GitHub This https://github.com/diaspora/diaspora/issues/5338 repository Watch 496 Star 10,945 Fork 2,795 diaspora/diaspora https://github.com/onli/izulu/issues/7 Code Issues 354 Pull requests 34 Projects 0 Wiki Pulse Graphs New issue Package missing in installation guide #5338 Closed TwizzyDizzy opened this Issue Oct 12, 2014 · 5 comments Projects None yet Labels unable to documentation Milestone No milestone Assignees No one assigned 3 participants TwizzyDizzy commented Oct 12, 2014 Hey folks, today I tested setting up a diaspora node for the first time. I used the guide at: https://wiki.diasporafoundation.org/Installation/Debian/Wheezy#Install_Packages The installation was pretty straight forward but unable to read there was one issue: After turing on asset serving I was not able to see the captcha on the pod registration form. Digging in the logs I found: Started GET "/simple_captcha?code=d9dc539ab6c364f8502b941be664d517df9e04fe&time=1413128758" for [my ip] at 2014-10-12 17:46:49 +0200 StandardError (Error while running convert: convert.im6: unable to read font /usr/share/fonts/type1/gsfonts/n019003l.pfb' @ error/annotate.c/RenderFreetype/1123.
convert.im6: Postscript delegate failed/tmp/magick-auDp1VkM': No such file or directory @ error/ps.c/ReadPSImage/832. convert.im6: no images defined /tmp/simple_captcha20141012-7393-ae5imb.jpg' @ error/convert.c/ConvertImageCommand/3044.
):
lib/rack/chrome_frame.rb:39:incall' lib/unicorn_killer.rb:35:in `call' It turned out that imagemagick was not finding the font at /usr/share/fonts/type1/gsfonts/n019003l.pfb So here's whats missing in the guide: apt-get install gsfonts This probably applies to at least every installation guide for Debian and Ubuntu, maybe others. Cheers Thomas diaspora* social network member jhass commented Oct 12, 2014 Thanks, I updated the Debian guides. Btw. i
Sign in Pricing Blog Support Search GitHub This repository Watch 5 Star 11 Fork 1 onli/izulu Code Issues 0 Pull requests 0 Projects 0 Pulse Graphs New issue Error on startup #7 Closed Sh4kE opened this Issue Sep 4, 2016 · 12 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants Sh4kE commented Sep 4, 2016 When starting izulu I only get this stacktrace: izulu -c Berlin -gr -i 900 -n -p -r -rd germany -t -tg -tm convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unable to read font `Helvetica' @ error/annotate.c/RenderFreetype/1316. convert: unrecognized gravity type `-tm' @ error/convert.c/ConvertImageCommand/1720. Im on Arch (4.4.19-1-MANJARO) I installed ephifonts, which should include Helvetica. So I have no clue what could be the reason Owner onli commented Sep 4, 2016 Thanks for the report. It seems that Helvetica is not available on your system. https://aur.archlinux.org/packages/ephifonts/ mentions some problems with the Helvetica-font, maybe that is related. Could you show me the output of convert -list font? Sh4kE commented Sep 4, 2016 • edited Wow I didn't know I have so many fonts available, so I put it in pastebin instead: http://pastebin.com/vxHdguHk Sh4kE commented Sep 4, 2016 Aha, this particular problem isn't causing the malfunctioning. I use mate as my window environment and it seems like your script cannot find out the right command for setting the background. When I enter the wpcommand manually in the config, than it seems to work as expected. Unfortunatly I couldn't figure out the default mate command for setting a wallpaper, I don't even know if there is one. So I installed feh, but how do I tell feh to set the background and not opening up a new window? Sh4kE commented Sep 4, 2016 Finally found out