English 中文(简体)
How do I render @font-face in PhantomJS screen capture?
原标题:

The screen capture is great, but the custom @font-face fonts aren t being rendered. Is it possible to correct this?

问题回答

After doing some research for a bit I found this

http://code.google.com/p/phantomjs/issues/detail?id=247

Looks like SVG works the best.

One problem I ran into while testing a screenshot again after using an SVG version of the font was WebKit caching the old page and still showing the broken fonts. Make sure your server explicitly tells it to not use a cached version, or clean WebKits cache.

I ve build PhantomJS with Webfonts support for OSX and Linux - You can use the binaries directly -

Download From: http://arunoda.me/blog/phantomjs-webfonts-build.html





相关问题
@font-face in CSS....is it ok?

On my website, my font family is Tw Cen MT, Gill Sans, Century Gothic, sans-serif. Obviouisly, not everyone is going to have Tw Cen MT, so I have chosen to try out the @font-face method. Here is my ...

Firefox 3.5 on a Mac and @font-face

I m having a problem with @font-face. It actually works flawlessly on Safari, internet explorer 7+ and Firefox for windows but not at all on firefox for mac. I m using code from the bulletproof @...

How can I convert OTF/TTF files to EOT format?

I need to use @font-face feature and my fonts are in OTF/TTF format and Microsoft browsers support only EOT format. I tried to use Microsoft tool WEFT, but it didn t work or I didn t understand how it ...

@font-face support in major email clients?

Do major web and desktop email clients support the font-face feature? It would be only logical to assume that they don t but thought I d ask anyway. Has anybody tested?

Custom font and a CMS

I m building a web site for an artist who has had a custom font made from his handwriting. He d like to use this font extensively throughout the site - not for all body copy because it d be difficult ...

Internet Explorer @font-face is failing

I m trying to get Internet Explorer to render my pretty fonts. It s not working. They work fine in Firefox and I can see in my Apache access logs that IE has pulled the fonts. So it s parsing the font-...

热门标签