Closed (fixed)
Project:
@font-your-face
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2011 at 05:39 UTC
Updated:
26 Apr 2011 at 23:51 UTC
Hello, great module and thanks. The problem I am having is it seems I can only have one local font installed at a time. For instance, I have successfully imported a font and everything works great. When I go to import another font (btw the link disappears after I have imported one) the previously imported font no longer appears as enabled, where as the new one does.
Please advise, thanks!
Comments
Comment #1
syntheticMedia commentedHave I missed something in the documentation?
Comment #2
doomed commentedhmm, this module allows for local fonts ?
meaning you can upload your own ?
i thought it was all based on the official providers.
Comment #3
sreynen commentedSince I never tested with more than one local font, I'm assuming this is a bug. I'll try to test and fix it soon. @everything27, thanks for reporting it.
@doomed, the functionality to upload your own fonts is relatively new, but yes, it's there, so far only in the Drupal 6 version.
Comment #4
syntheticMedia commentedGreat, thanks sreynen
Also- I am having an issue with the 1 local font that is installed. I believe cron might be the culprit. The situation is that every about 12 hours (the same interval as when cron runs) my installed local font no longer works. It shows as installed, however the preview (and the text which uses the local font class) no longer uses the font and reverts back to a standard webfont.
I tried using supercron by limiting to only invoke dblog, search, statistics and update, but the problem persists (did not see any fontyourface names in the invoke list). Any suggestions?
thanks!
Comment #5
sreynen commented@font-your-face doesn't do anything on cron, so I have no idea why cron would be affecting it. Please open a separate issue for that so anyone else experiencing the same problem will be able to find it.
Comment #6
conorc commentedHi Scott,
Thanks for this module.
I'm also hoping to install more than 1 local font. The 1st one loads perfectly, then loading the 2nd seems to replace the 1st, though the font files do get uploaded to a separate directory and is the one that gets used, only the class settings carry over from the 1st. For me on Drupal 6 with a Fusion subtheme, this happens immediately, without cron or any other event happening.
Let me know if you need further info debugging this.
Edit: font formats being used are WOFF/EOT/SVG. There's no TTF just in case that makes a difference?
PS: really love the video :-)
Conor
Comment #7
koppie commentedSame here - subscribing.
Thanks for this AWESOME module!
Comment #8
sreynen commentedThis was indeed a bug. The problem was the main module treats font URLs as unique IDs for the fonts, but the local fonts had no URL. Two fonts with a blank URL were treated as the same font. I fixed it by giving the local fonts unique URLs.
Fix committed to dev. I'll try to do a new stable release soon. Note: if you're trying the dev release, those are packaged nightly, so check the date before you download it.
Comment #9
syntheticMedia commentedCool, thanks for the commit. Ill try dev later tonight
thanks!
Comment #10
syntheticMedia commentedTested with dev version and I am happy to report everything works great. Thanks again for your continued support.
Comment #11
sreynen commentedThis fix is in the new 6.x-2.5 release.
Comment #12
doomed commentedI can confirm the 6.x-2.5 release is good!
More than one font is working.
Deleting font is also working.
These two things were not working on version 6.x-2.4 .
Thanks sreynen!