Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google font #143

Closed
wanybae opened this issue Nov 13, 2014 · 16 comments
Closed

Google font #143

wanybae opened this issue Nov 13, 2014 · 16 comments

Comments

@wanybae
Copy link

wanybae commented Nov 13, 2014

First Thank you very much for this.

I used last time but it dose not display google font.

<link rel='stylesheet' type='text/css' href='http://fonts.googleapis.com/css?family=Open+Sans:400,800,300'>

but result image dose not display Open Sans font..
If you know this already I am so sorry.

@kevva
Copy link
Contributor

kevva commented Nov 13, 2014

It should. Have you installed PhantomJS before installing this module? You need to use the version we supply.

@sindresorhus sindresorhus modified the milestone: 1.1.0 Nov 17, 2014
@kevva
Copy link
Contributor

kevva commented Nov 17, 2014

ping @wanybae.

@wanybae
Copy link
Author

wanybae commented Nov 18, 2014

Thanks @kevva.
I think I didn't install PhantomJS. I'll try that. :)

@kevva
Copy link
Contributor

kevva commented Nov 18, 2014

You shouldn't. The correct version of PhantomJS gets automatically installed with this module.

@wanybae
Copy link
Author

wanybae commented Nov 18, 2014

screen shot 2014-11-18 at 7 40 30 pm

Upside is web browser.
Down is captured image using pageres.
I don't know why. I installed manually Phantomjs.

@sindresorhus
Copy link
Owner

@wanybae Try running pageres with the --verbose flag and paste the terminal output here.

Having the command you used would also help.

@kevva
Copy link
Contributor

kevva commented Nov 18, 2014

@wanybae

You shouldn't. The correct version of PhantomJS gets automatically installed with this module.

Don't install PhantomJS manually. You're most likely using a version which doesn't support web fonts.

@kevva
Copy link
Contributor

kevva commented Nov 18, 2014

As you see below, it should work fine:

google com fonts specimen open sans-1024x768-cropped

@wanybae
Copy link
Author

wanybae commented Nov 19, 2014

@kevva Sorry, that font is not Open Sans.

<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto+Condensed:400,700">

screen shot 2014-11-19 at 11 18 27 am

That font is Roboto Condensed and font-weight is default 400.
You can find the difference of number 9.
I am sorry bothering you guys

@wanybae
Copy link
Author

wanybae commented Nov 19, 2014

@sindresorhus I tried --verbose but still same result. I tested on jsfiddle.net.

on my web browser(Safari)

screen shot 2014-11-19 at 11 41 24 am

screenshot using pageres

$ pageres http://jsfiddle.net/baepower/qxLbpn6v/1/ 1200x670 --verbose --delay 3

jsfiddle net baepower qxlbpn6v 1-1200x670

@kevva
Copy link
Contributor

kevva commented Nov 25, 2014

@wanybae, I can't really reproduce this. Could you try running phantomjs --version and check if you have it globally installed and if so, which version?

@wanybae
Copy link
Author

wanybae commented Nov 26, 2014

@kevva

$ phantomjs --version
1.9.8

I think I installed globally.

@kevva
Copy link
Contributor

kevva commented Nov 26, 2014

Yes, then that's the problem. You need to use version 1.9.2-6 which gets automatically installed with this module.

@kevva kevva closed this as completed Nov 26, 2014
@sindresorhus
Copy link
Owner

@kevva Maybe we should fork the phantomjs node module and have it never use the global binary? It seems that's has caused like 80% of the issues we've gotten.

@kevva
Copy link
Contributor

kevva commented Nov 26, 2014

Yup, sounds like a good idea. I have a PR over there too that I should finish which potentially could fix this.

@steoo
Copy link

steoo commented Mar 1, 2015

I've the same problem, using phantomjs 1.9.2-6 installed locally and pageres installed locally, and also globally it is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants