Closed (outdated)
Project:
@font-your-face
Version:
7.x-2.x-dev
Component:
Fontdeck (provider)
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2013 at 00:47 UTC
Updated:
8 Aug 2020 at 14:36 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sreynen commentedGood question. I can't find any documentation on this, but I think maybe when we were initially testing the API, it would only match on non-www domains. If that's not the case now, we should change the code.
Comment #2
mstrelan commentedPatch
Comment #3
Drave Robber commentedAccording to http://fontdeck.com/support/troubleshooting,
So it definitely "thinks" www and non-www are different. Obviously, it also checks the referrer and is quite strict about it.
The patch looks good (hey, it also fixes that silly typo in the comment above :); unfortunately, I have no capability to test it properly at the moment.
Comment #4
Drave Robber commentedI set up
www.fyf.localin addition tofyf.local, added both as domains to my Fontdeck project, enabled one font, and hey - it works onwww.fyf.localeven though requested viahttp://f.fontdeck.com/s/css/hiLWjqcm3fXPpBf3PaBeLgn8Dis/fyf.local/29429.css. So the important part is adding www. domain to the Fontdeck project, but the domain in request URL isn't really important.Not all fonts work, though - some (not to say half of them) refuse to work altogether. I reckon some API information might be outdated. At the moment, I'm not sure what to do about this.Not "outdated", but "not updated instantly", and it seems to take wildly different time to update (from 10 sec to 5 min) - got me confused.Still not sure what to do next and whether there is anything in need of a fix. More testing, esp. on real domains, welcome.
Comment #5
Drave Robber commentedOn the other hand, this patch might be justified simply on "don't do redundant stuff" grounds. I'm inclined to leave this hanging while other Fontdeck issues are solved (see below).
The real reason why Fontdeck acts up with multiple domains seems to be altogether different.
fontdeck_fontyourface_import()adds CSS only for the domain you're currently on, which is not always appropriate. Until we've figured out what to do about this, you're left with somewhat silly option of repeating 'Import Fontdeck fonts' on every domain.Comment #6
neslee canil pinto