JavaScripting

The definitive source of the best
JavaScript libraries, frameworks, and plugins.


  • ×

    jQuery Webfonts

    jQuery based Webfonts library
    Filed under 

    • 🔾14%Overall
    • 18
    • 22.2 days
    • 🕩19
    • 👥10

    jquery.webfonts

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

    Introduction

    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.

    Features

    • 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

    Test

    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

    http://localhost:8000/tests/
    

    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://).

    License

    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.

    Developers

    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

    Show All