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

amilne’s picture

Same 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.

sreynen’s picture

Title: Font CSS selector does not work, font's fail to render. » Fontsquirrel CSS selector does not work, font's fail to render.
Category: bug » support
Status: Active » Postponed (maintainer needs more info)

I'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?

sreynen’s picture

Title: Fontsquirrel CSS selector does not work, font's fail to render. » Font CSS selector does not work, font's fail to render.

Cross-posted. amilne, I'm assuming you loaded Lobster via Google?

amilne’s picture

I 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.

amilne’s picture

amilne’s picture

Ok - 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. :(

sreynen’s picture

Ok, 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?

amilne’s picture

Sorry 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.

sreynen’s picture

Dale Baldwin, is your problem possibly also a permissions error?

Dale Baldwin’s picture

Permissions 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

Dale Baldwin’s picture

Status: Postponed (maintainer needs more info) » Fixed

permissions issue

trouble.tribbles’s picture

You folks mentioned a permissions issue. What permissions should be set on the @font-your-face files? 664?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

raulmuroc’s picture

Component: Code » Code (general)
Status: Closed (fixed) » Active

Please, tell where did you change file permissions and which configuration did you set up.

Thank you.

sreynen’s picture

Status: Active » Fixed

RaulMuroc, 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.