I am on Rails 3.2.9. Is it possible for me to use typekit (or goggle fonts) for rendering the images? I used the following code, but the images are not rendering the right fonts. I suspected the pages were not loading.
html = "<head>"
html << '<script type="text/javascript" src="//use.typekit.net/dtf1xzc.js"></script>'
html << '<script type="text/javascript">try{Typekit.load();}catch(e){}</script>'
html << "</head>"
html << html2berendered
kit = IMGKit.new(html)
kit.stylesheets << Rails.root.join('app', 'assets','stylesheets' ,'cards.css').to_s
kit.to_png
Alternatively, I could try using custom fonts by installing them, but they do not load for some weird reason.