Closed (fixed)
Project:
OpenChurch
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2012 at 13:11 UTC
Updated:
9 Jun 2012 at 13:51 UTC
http://drupal.org/project/google_fonts
We should move to @font-your-face. We moved to this module for other projects months back.
Does anyone know what would be involved?
Doesn't look like Google Fonts even has a default configuration. Perhaps we ditch it?
Comments
Comment #1
dude4linux commentedThis worked until a few days ago. Apparently the Google Fonts module stopped supplying a recommended and supported version, so drush make no longer installs the module. I tried installing @font-your-face and saw no apparent issues. I'm installing using the following stub make file:
drush make completes successfully, but the following drush site-install fails:
Comment #2
dude4linux commentedTo replace google_fonts with @fontyourface, make the following changes:
In openchurch.make
and in openchurch.info
Comment #3
drupalninja99 commentedThanks alot dude4linux! I will try to integrate this this weekend, I didn't realize the google_fonts module was unsupported.
Comment #4
drupalninja99 commentedIs google_fonts_api a module or a library? I don't see a project for google_fonts_api
Comment #5
dude4linux commentedIt's a sub-module of @fontyourface. Only one of several font sources that can be selected from the fontyourface_ui. I included it because we were replacing the google_fonts module.
Comment #6
drupalninja99 commentedChanging to needs work, will add to the roadmap ticket.
Comment #7
drupalninja99 commentedChanging priority
Comment #8
drupalninja99 commentedThis is committed to head, if you to a .make build you can get the latest or wait for the packager to update the tarball.
I am going to do a build and test locally. It looks like a real easy switch based on my local test of just downloading and enabling the new module. Thanks!
Comment #9
drupalninja99 commentedHad a typo in my .info, this is fixed in head now.
Comment #10
drupalninja99 commentedThis was fixed in 1.9-alpha2
Comment #12
JulesJH commentedWhich package version should I be using? I have a problem with Google Fonts not being downloaded in openchurch-7.x-1.9-beta1-core.zip.
Comment #13
drupalninja99 commentedIt's been replaced with google fonts api and font your face which should work out of the box.
Comment #14
JulesJH commentedHi drupalninja99,
It didn't work out the box for me. I got this message during install:
"The list of Google Fonts could not be fetched. Verify that your server can connect the Google Servers (https://www.googleapis.com). Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
By the way, this is a great distribution. By far the best in this area to date! Keep up the good work!
Comment #15
drupalninja99 commentedMake sure you files directory is writable. Oh I wonder if you need php_curl enabled in your php.ini file. That might be what it is. If so you need to enable and restart apache
Comment #16
JulesJH commentedHi again,
Yes, I made sure all folders and contents were writable before I installed it. However, I checked again just to make sure. Also curl is already enabled...
I note that the URL to google fonts in the error message shows "https" rather than "http", yet in this article it shows the same URL without the secure part: https://developers.google.com/webfonts/docs/getting_started.
Just trying to help out, so I may up a gum tree here...
Jules
Comment #17
drupalninja99 commentedok darn i thought this was working, it appears it isnt.
Comment #18
drupalninja99 commentedWell I saw it wasn't enabled on the demo site but that was upgraded from an earlier version. It seemed to download the google fonts just fine.
Comment #19
drupalninja99 commentedIt seems to work fine in dev 2x, I don't have any idea where fontyourface even installs fonts if at all. I know I dont get any errors.
Comment #20
JulesJH commentedHi
As I can play with different versions locally, I downloaded openchurch-7.x-1.x-dev-core, and the same thing happened. I got the same error message. I think it is just timing out during the install.
However in admin/config/user-interface/fontyourface, I was able to download the fonts retrospectively, and install them at admin/appearance/fontyourface/browse/google_fonts_api. I haven't enabled any as yet.
I presume that your theme uses some of them? Can you tell me which ones so I can add them manually? There are over 1,500 of them, so I don't want to enable them all....
Jules
Comment #21
drupalninja99 commentedI just use Neuton, I don't think you have to enable them? I thought you could just use them
Comment #22
drupalninja99 commentedOK maybe I have the Neuton font on my local box and that's throwing me off.
Comment #23
drupalninja99 commentedGood catch, I had to add a line to my info file for it to work. I tested in ie to make sure it worked. The problem was that I have the Neuton font on my local box.
This is now in 1x-dev and will get pushed out pretty quick.
Comment #24
drupalninja99 commentedActually its in the openchurch theme 1x dev, I need to fix something in another ticket before I can roll out everything to a stable release.
Comment #25
drupalninja99 commentedFor now you can hot fix it by just adding 'fonts[google_fonts_api][] = "Neuton&subset=latin#regular"' to your .info file in the openchurch_theme
Comment #26
drupalninja99 commented-Added release 1.9-beta2 which fixes this
Comment #27
drupalninja99 commentedComment #28
JulesJH commentedMany thanks. Will check it out...
Comment #29
JulesJH commentedHi drupalninja99,
Using 1.9-Beta-2: Can't import fonts at all now in: config/user-interface/fontyourface
Error messages AFTER running import say:
"The list of Google Fonts could not be fetched. Verify that your server can connect the Google Servers (https://www.googleapis.com). Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
The google_fonts_api font that is added to the theme .info file cannot be loaded. This is probably because the import has not been run yet. Run import to add fonts."...
Comment #30
JulesJH commentedI might add that even though both beta-2 and openchurch-7.x-1.x-dev-core won't import the fonts during install, in openchurch-7.x-1.x-dev-core I can at least use the google fonts import after the install, whereas in beta-2 it appears to be broken...
Comment #31
drupalninja99 commentedI will test beta2 again locally. If you can't import fonts though that might be a permissions thing.
Comment #32
drupalninja99 commentedLooks fine locally
Comment #33
sugens commentedHi There,
I am having similar problems with Google fonts. Just installed openchurch-7.x-1.9-beta2-core and get a "Google Fonts" error notification at the top of each page saying that the error is likely because "Run Import" has not been complete. When I click the link to do the import, It takes me to Home » Administration » Configuration » User interface » @font-your-face settings and has a button to "Import Google Fonts" under the Provider section. When I click the button I get the following error:
- The google_fonts_api font that is added to the theme .info file cannot be loaded. This is probably becuase the import has not been run yet. Run import to add fonts.
- The list of Google Fonts could not be fetched. Verify that your server can connect the Google Servers (https://www.googleapis.com). Error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?
By the way, https://www.googleapis.com retruns a 404 page not found error. The unsecure version (i.e. http://www.googleapis.com) also returns a "link appears to be broken" page and suggests http://www.apis.google.com as an alternative. Clicking that link redirects you to http://code.google.com/.
Hope this helps
Comment #34
drupalninja99 commentedYou should review the google_fonts_api issue queue. I would suspect that you don't have ssl enabled in your php.ini. I don't think is a problem on the OpenChurch side of things.
Comment #35
drupalninja99 commentedThis should be fix in versions greater than 1.10