Closed (fixed)
Project:
@font-your-face
Version:
7.x-1.x-dev
Component:
Code (general)
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Sep 2011 at 08:28 UTC
Updated:
15 May 2013 at 02:50 UTC
I've tried to get this module to work for the last hour or so with no luck, I've tried 7.16 and 7.1 dev with no luck. I'm using fonts from font squirel which download fine however don't render when activated with the css selector. I've tried using all the preset options and setting my own with other.
The only way so far I have found a way for this module to work is to add the font family inside the css style sheet. I'm using a zen starterkit sub theme to build on but have never experienced this problem using the same systems under D6.
Any ideas. thanks
Comments
Comment #1
amilne commentedSame issue here for both 7.x-1.6 and 7.x-1.x-dev. Just installed this morning, and tried testing with "Lobster (latin)" font (tried a few others as well).
Able to set font-family in CSS, but interface settings don't seem to be working. Also using a Fusion starter theme, but switched back over to Bartik to test, and still no luck. All caching disabled, and local browser cache cleared. Also tried Font Squirrel fonts just to see if it was a Google-only issue, but those also did not work.
Happy to provide any additional info as required.
Comment #2
sreynen commentedI'm not sure this is a bug yet, so I'm marking it as a support request for now. Some questions:
1) Which font(s) have you tried?
2) Which CSS selector(s) have you tried?
3) Does the font stylesheet load within the HTML (search for "fontyourface/fontsquirrel")?
4) If the stylesheet is loading, does your browser's inspector show another stylesheet overriding the font?
5) If the stylesheet is not loading, any errors in your Drupal log?
Comment #3
sreynen commentedCross-posted. amilne, I'm assuming you loaded Lobster via Google?
Comment #4
amilne commentedI did, yes. Also tried with Font Squirrel lobster just to check.
Here's the pertinent section in my header:
@import url("http:///sites/default/files/fontyourface/font.css?lrd6vh");These are the last two stylesheets loaded.
I can PM you the URL if you wanted to have a look. Right now, I have no font-family set in my CSS, and Bartik enabled, and the Google Lobster font enabled with the following selectors: h2, #content h2, #content h2 a
It's picking up the body font-family from Bartik's stylesheet.
Comment #5
amilne commentedOops - sorry - it's also loading as a link: http://fonts.googleapis.com/css?family=Lobster:regular&subset=latin
Comment #6
amilne commentedOk - I have it working on my end. I believe it was a permissions issue in my files directory. On a whim, I tried a few different things. First was to disable Skinr, but no luck. Then enabled CSS / JS compression, and no luck, but using Firebug, noticed 403 errors related to permissions. Fixed the permissions and problem solved. Re-enabled skinr, and still works.
Sorry for the confusion - rookie mistake I know. :(
Comment #7
sreynen commentedOk, http:///sites/default/files/fontyourface/font.css?lrd6vh is not a valid URL (there's no domain), and that's the stylesheet that actually applies the fonts, so that would explain why they aren't applying. I haven't been able to reproduce this myself. If you could PM me the URL to look at, that would be useful.
Are either of you running any other modules that deal with style and might be altering the stylesheet paths?
Comment #8
amilne commentedSorry sreynen - I had replaced my URL with , but that got removed when I submitted the comment. My issue is now resolved now that the correct directory permissions have been applied to my install.
Comment #9
sreynen commentedDale Baldwin, is your problem possibly also a permissions error?
Comment #10
Dale Baldwin commentedPermissions issue, I backed up my files directory when I upgraded Drupal to 7.8 oddly enough I wasn't getting any error or log message though from it. Thanks for the help guys
Comment #11
Dale Baldwin commentedpermissions issue
Comment #12
trouble.tribbles commentedYou folks mentioned a permissions issue. What permissions should be set on the @font-your-face files? 664?
Comment #14
raulmuroc commentedPlease, tell where did you change file permissions and which configuration did you set up.
Thank you.
Comment #15
sreynen commentedRaulMuroc, if you're having permissions errors, they should show up in your log with more details. It's most likely the file path in #4, which needs to be write-able by your web server.