jQuery based Webfonts library
JavaScript HTML
Latest commit 14b7700 Aug 18, 2016 @santhoshtr santhoshtr committed on GitHub Merge pull request #47 from khaledhosny/local-syntax
Fix @font-face local() syntax
Failed to load latest commit information.
src Fix @font-face local() syntax Aug 18, 2016
GPL-LICENSE Add License - MIT and GPL Aug 13, 2012
README.md Fix README.md markdown syntax Aug 18, 2016



jQuery based webfonts extension. This is a project by Wikimedia foundation's Language Engineering team


jQuery WebFonts extension adds font embedding capability to jquery using the WebFonts technology. The extension provides a flexible way to choose font from a font repository and apply on html elements.


  • Flexible font repository. The extension can work with any font repository file system. See more..
  • Provides many APIs to customize and extend. See more...
  • Applies font based on the html lang attribute of the elements
  • Make sure the font defined using font-family style for any elements, either using inline css or external css' available for the reader without any extra code. See Examples

For examples, API, and usage information, please visit wiki


If you have python installed, run

python -m SimpleHTTPServer

or, In case you have python3

python3 -m http.server

or, with PHP

php -S localhost:8000

and, you can run tests from


Since some browsers will not be able to load JSON using AJAX if you run the tests as local files (file://), so you should run them from a web server (http://).


You may use jquery.webfonts under the terms of either the MIT License or the GNU General Public License (GPL) Version 2 or later.

See GPL-LICENSE and MIT-LICENSE for details.


This project is part of Wikimedia Foundation's Project Milkshake. See https://www.mediawiki.org/wiki/Project_Milkshake.

For details on how Wikimedia is using this extension for providing webfonts to wikis, read https://www.mediawiki.org/wiki/Universal_Language_Selector/WebFonts