Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There was a fairly substantial issue where the initial config of no fonts was triggering an error in the new fontjs. This should now be resolved and improve the initial install experience substantially.
This would be the first substantial release in...well...long enough. The google webfont loader library being used has been upgraded from 1.4.8 to 1.5.10 (you can see the changelog at https://github.com/typekit/webfontloader/blob/v1.5.10/CHANGELOG). While I anticipate a new release of the webfont loader js in the next couple of days (and I'll actually issue a new release quickly enough this time, these are the changes to the module (and they are substantial enough to warrant a new release).
I forgot to provide an update hook since the format of the variable which stores the fonts being used has changed from a string to an array. My apologies to any one that updated to release 7.x-1.8. This new release should fix the issue.
Fixes:
On older mobile browsers, the site might look blank if the font loading style is set to 'hidden'. This is because while the older browser may not actually support font-face in a proper manner, the loader will set the state to loading. This now does a check after a few seconds if the font has loaded and the visibility is set to hidden (I am making an assumption that a font should have downloaded and loaded in the dom within this time period); if so, then it remove the hidden visibility state so the user can still continue to browse the site.
On older mobile browsers, the site might look blank if the font loading style is set to 'hidden'. This is because while the older browser may not actually support font-face in a proper manner, the loader will set the state to loading. This now does a check after a few seconds if the font has loaded and the visibility is set to hidden (I am making an assumption that a font should have downloaded and loaded in the dom within this time period); if so, then it remove the hidden visibility state so the user can still continue to browse the site.
Cleaned up the code. Fixed a issue where adding the css to not display text on inactive fonts could mean that browsers (debugged via old versions of iOS) that could still load the js would not actually be able to view the page. So now it will only be when the font is actually going to be downloaded.
Cleaned up the code. Fixed a issue where adding the css to not display text on inactive fonts could mean that browsers (debugged via old versions of iOS) that could still load the js would not actually be able to view the page. So now it will only be when the font is actually going to be downloaded.
This is a (very) minor update. Change to the way the js loads up. Instead of using a static variable, we use the jquery.once() functionality to determine and load the js up once on the page.
Fix on using hook_permission instead of hook_perm (a carryover from the 6.x branch). Patch by rainbreaw. Module permissions could only be set by users with uid = 1. The patch now fixes that issue.
Due to change in drupal add js function, the webfont loader js can be added externally. However, I had not accounted for the change in the js file on recalling the wfl script (thus causing it to download twice). The issue should be resolved in this release. Also adding a README which (mostly) documents how to create a font package to use with the wfl.
Seems like the last release was broken(?). Adjusting to be properly compatible with 7.x (will do some more testing). And adding ability to load fonts from fontdeck and fontslive