fzaninotto / screenshot-as-a-service

Website screenshot service powered by node.js and phantomjs
1.1k stars 242 forks source link

Pages Rendering With Wrong Webfont #34

Closed lahdekorpi closed 11 years ago

lahdekorpi commented 11 years ago

I'm having some weird issues with wrong (from previous sites) webfonts are shown.

Test case:

  1. Boot up the service
  2. Load http://x.local that uses a .woff: "Montserrat-Regular"
  3. Screenshot works as it should be with the correct font
  4. Load http://y.local that uses a .woff: "Sansation-Regular"
  5. Screenshot shows the site using "Montserrat-Regular" instead of the correct one
  6. killall phantomjs
  7. Load http://y.local again
  8. Screenshot works as it should be with the correct font
  9. Load http://x.local again
  10. Screenshot shows the site using "Sansation-Regular" instead of the correct one

TL;DR: Once a webfont is loaded, all pages show up with that one.

fzaninotto commented 11 years ago

IMHO that's a phantomjs issue.

lahdekorpi commented 11 years ago

Weird thing is, I cant reproduce it with just phantomjs even when trying to load multiple urls with one process... Maybe my testing is flawed.

Tapha commented 10 years ago

I am too getting this issue.

slorber commented 9 years ago

Seems to have the same problem here: we noticed phantomJS took 2 different screenshots of the same website (and it looks like the difference is font)