4 ms·
I tried with typekit with no success: http://phantomjs-pad.ozaur.com/DrDvxMADoP2TdF652 http://phantomjs-pad.ozaur.com/DrDvxMADoP2TdF652 I was curious with this
by deanclatworthy 12y ago
I tried with typekit with no success: http://phantomjs-pad.ozaur.com/DrDvxMADoP2TdF652 http://phantomjs-pad.ozaur.com/DrDvxMADoP2TdF652
I was curious with this example, as I have had zero luck getting webfonts to render using PhantomJS so far. Have you had any success rendering webfonts?
- d4n3 12y agoThe thing with phantomjs and webfonts is that it has an old webkit version which has some bugs with webfont support. Theres a branch from a phantomjs contributor on github that has bugfixes for webfonts support backported: https://github.com/Vitallium/phantomjs/tree/fix-WOFF-file-support https://github.com/Vitallium/phantomjs/tree/fix-WOFF-file-su... I use phantomjs for html to image rendering and I managed to get webfont support working with a custom build from that branch (working on Heroku)
- warfangle 12y agoPhantomJS is falling further and further behind. It also doesn't, for example, support scripts triggered DOM events. The more time goes by, the more I'm considering removing it from our testing suite.
- jakozaur 12y agoLooks like the site is overloaded, so a lot of times it end up in timeout problems.
- webo 12y agoYou need to exit at the end: phantom.exit()
- firloop 12y agoHm, that's what I added but I guess the link did not update like other pastebin sites. Oh well...
- firloop 12y agoWorking example: http://phantomjs-pad.ozaur.com/DrDvxMADoP2TdF652 http://phantomjs-pad.ozaur.com/DrDvxMADoP2TdF652