Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I tried with typekit with no success: 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?



The 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-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)


PhantomJS 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.



You need to exit at the end: phantom.exit()


Hm, that's what I added but I guess the link did not update like other pastebin sites. Oh well...


Looks like the site is overloaded, so a lot of times it end up in timeout problems.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: