Hello,
I'm noticing a small problem which i'm sure is preventing this module of working properly on my site.
On the Drupal Reports page, i have many entries like this:
Type: page not found
Path: http://virtual01/mysite/sites/default/files/fontyourface/local_fonts/myriad_pro_regular/myriadpro-regular.ttf
Reference: http://virtual01/mysite/admin/reports/event/12808
Message: sites/default/files/fontyourface/local_fonts/myriad_pro_regular/myriadpro-regular.ttf
As you can see above, pages are invoking a .ttf file from folder local_fonts/myriad_pro_regular.
Problem is, the folder is in fact called local_fonts/myriadpro_regular.
myriadpro-regular is the "CSS Font Family" name i typed when importing this new font.
So i'm wondering where Drupal is getting the name myriad_pro_regular from.
Any ideas on how to fix this?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | screenshot_local_fonts.jpg | 52.64 KB | doomed |
Comments
Comment #1
doomed commentedstylesheet.css under myriadpro_regular folder:
Comment #2
sreynen commentedAt first glance, this sounds like a bug. I'll look into it.
Comment #3
sreynen commentedI haven't been able to reproduce this problem. The folder name comes directly from the font family name you entered, so myriadpro_regular is the correct name. Do you maybe have an earlier import still enabled with a different name? That's the only reason I can think of it would be looking for something in another directory. You can see what's enabled at admin/build/themes/fontyourface.
Comment #4
doomed commentedI have only two enabled:
Myriad Pro Regular
(this one i gave the css name of myriadpro-regular)
Myriad Pro Semibold
(this one i gave the css name of myriadpro-semibold)
The errors seem to be only for the first.
I'm attaching a screenshot of the local fonts folder.
I can also send you the font files if you want to test this yourself.
Comment #5
sreynen commentedComment #6
doomed commentedHello
Whats the status on this?
I wonder if there are other users with the same kind of problem.
Comment #7
sreynen commentedI haven't been able to reproduce this yet. It may be related to #1118806: Cron disables local font. Can you try re-uploading the font with the dev version and see if this still happens?
Comment #8
sreynen commentedAre you still having this problem?
Comment #9
sreynen commentedI'm closing this, as I haven't been able to reproduce it. If anyone is still having this problem, please re-open.
Comment #10
j2b commentedActually I am experiencing the same event - Page not found in Watchdog logs, but all fonts display correctly, no problems with file/folder permissions. Just large amount of such notifications. What I did noticed, is that something is calling font with a wrong path (almost). Font path is correct, but it is appended with " sign or %22 symbol only once at the end of whole string, e.g. ....ttf%22. And it is correct, that such path does not exist, as the actual path is ... ttf (ends only with .ttf or other file extension). This happens only with one .ttf font using Local fonts sub-module.
As I mentioned, fonts are displayed more or less correct. I was going through module files, to find some string forming this path, but as I am not a programmer, actually didn't manage to find anything useful, what I understand. What may be the cause for such strange path request with only one " symbol at the end? Actual folders and folder paths are correct. Using module's v2.8.
Comment #11
sreynen commentedI think this is probably a bug in whatever is requesting that URL. The CSS has quotes around the URL for the font files, following the CSS spec. I'm guessing something (a browser, web spider, etc.) is wrongly including the closing quote as part of the URL. Since we can't fix that in the module, I'm closing this. If I have any of this wrong, please re-open.
Comment #12
jarchowk commentedI'm not sure if my error is related, but it seemed close. I'm using 7.2x dev and getting 404 errors in my report log trying to access:
http://xxxxxx/http://fonts.googleapis.com/css?family=Gudea:400,bold,ital...
Obviously the error here is that it's prepending my domain url to the start. Any ideas?
edit: forgot to mention the fonts work fine, just getting spammed in my logs
Comment #13
sreynen commentedjarchowk, I think that's a separate issue. If you want to create a new issue for it, please include some detail on how we might reproduce the problem.
Comment #14
kenmiller35 commentedFYI, I have this issue too. It does not seem to cause a problem with my site. I just see a lot of errors in the log.
The log shows this as the location for the page not found:
This is the css:
It does not seem like a big deal. I just thought I would let you know.
Ken
Comment #15
sreynen commentedkenmiller35, what browser are you seeing that in? And did you only upload a .ttf file?
The upload form takes multiple file formats because different browsers support different formats. My guess is you didn't upload the right format for your browser (I'm guessing IE) and it doesn't understand the CSS syntax for TTF files. The solution to that is to upload all formats. Or, better yet, use the font from a dedicated font server that already has all formats and can serve them faster than your server. FrancoisOne is available on Google:
http://www.google.com/webfonts/specimen/Francois+One
You should really only be using the local fonts module if you can't find the font anywhere else.
Comment #16
camilohollanda commentedI am having same issue,
It seems that the Drupal loader cannot process stylesheet.css for fonts in a correct way
Using Drupal 7 and @font-your-face 7.x-2.7
Comment #17
sreynen commentedcamilohollanda, Drupal doesn't process stylesheet.css for fonts at all. That happens entirely in the browser. That's why I asked which browser this was in #15. Since no one has been able to provide both the CSS and the browser, I haven't been able to reproduce this, so I'm marking as "closed (cannot reproduce)." If anyone can provide the requested detail, please change the status back to "active."
Comment #18
camilohollanda commentedUser agent:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)
stylesheet.css
@font-face {
font-family: 'AspectRegular';
src: url("aspect-webfont.eot");
src: url("aspect-webfont.eot") format("embedded-opentype"), url("aspect-webfont.ttf") format("truetype"), url("aspect-webfont.woff") format("woff"), url("aspect-webfont.svg#AspectRegular") format("svg");
font-style: normal;
font-weight: normal;
}
Apr 3 10:49:27 drupal: http://www.xxxx.org|1364996967|page not found|200.144.28.24|http://www.xxxx.org/sites/default/files/fontyourface/local_fonts/AspectR...)%20format(%22embedded-opentype%22),%20url(/sites/default/files/fontyourface/local_fonts/AspectRegular-normal-normal/aspect-webfont.ttf)%20format(%22truetype%22),%20url(/sites/default/files/fontyourface/local_fonts/AspectRegular-normal-normal/aspect-webfont.woff)%20format(%22woff%22),%20url(/sites/default/files/fontyourface/local_fonts/AspectRegular-normal-normal/aspect-webfont.svg|http://www.xxxx.org/pt-br/satsang/110213|0||sites/default/files/fontyourface/local_fonts/AspectRegular-normal-normal/aspect-webfont.eot) format("embedded-opentype"), url(/sites/default/files/fontyourface/local_fonts/AspectRegular-normal-normal/aspect-webfont.ttf) format("truetype"), url(/sites/default/files/fontyourface/local_fonts/AspectRegular-normal-normal/aspect-webfont.woff) format("woff"), url(/sites/default/files/fontyourface/local_fonts/AspectRegular-normal-normal/aspect-webfont.svg
Comment #19
sreynen commentedcamilohollanda, your CSS syntax doesn't match the code in 7.x-2.7. Specifically, you can see in the source there's a ?#iefix in the second .eot statement, which is missing from the CSS you posted. Do you maybe have something re-writing CSS on your site? That's the only explanation I can think of. The missing ?#iefix is, as the name implies, what should fix the IE bug that triggers those 404 requests.
Comment #20
camilohollanda commentedI made a change, removed the iefix trying to fix the problem, but without success,
I reverted, the result is the same.
@font-face {
font-family: 'AspectRegular';
src: url("aspect-webfont.eot");
src: url("aspect-webfont.eot?#iefix") format("embedded-opentype"), url("aspect-webfont.ttf") format("truetype"), url("aspect-webfont.woff") format("woff"), url("aspect-webfont.svg#AspectRegular") format("svg");
font-style: normal;
font-weight: normal;
}
Comment #21
Anonymous (not verified) commentedProblem is not the server side, but the client side when using Internet Explorer 8
A stated by MS itself:
http://msdn.microsoft.com/en-us/library/ie/ms530757(v=vs.85).aspx
IE 8 does'nt supports the 'format' parameter.
So, any idea on how to avoid that ugly warnings for IE 8 ?
Maybe we simply must ask our users to migrate to a real browser, right? ;)
Comment #22
Anonymous (not verified) commentedI have the same issue on D7.22.
- Development stage = Local (no issue)
- Testing stage = Remote (host A) (no issue)
- Accepting stage = Remote (host B) (Got the issue)
- Production stage = Remote (host B) (Got the issue)
All testen on my notebook with Google Chrome. I got this "status HTTP-request" error on my "../admin/reports/status" page on the production stage (host B). I haven't testen fontyourface but i'll asume it could fix the problem.
This page explains clearly what the problem is.
http://www.paulirish.com/2009/bulletproof-font-face-implementation-syntax/
Comment #23
neslee canil pinto