Phantomjs not render hebrew fonts

大兔子大兔子 提交于 2019-12-03 15:33:08

You should use python code for taking screenshots of website. there are two module which will do whatever you want pyvirtualdisplay & selenium. Install them and write a class to create screenshot and call it with command line with your code. Best of luck...

follow these steps:

in /usr/share/fonts/ I added a folder named arial with the arial.ttf for hebrew I ran fc-cache -vf. That's it! I did not edit or change fonts.conf or did anything else as suggested in the link.

yuvi

I recently had to fix the same problem myself. I ended up doing what's suggested in the this answer. Well, sort of. I skipped some of the steps:

  1. in /usr/share/fonts/ I added a folder named arial with the arial.ttf for hebrew
  2. I ran fc-cache -vf.
  3. That's it! I did not edit or change fonts.conf or did anything else as suggested in the link.

Granted, I still had a little trouble with parts of the page (I'm guessing it was because they were using fonts other than arial), but I ended up not needing them. Hopefully that'll be good enough for you too!

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!