GithubHelp home page GithubHelp logo

runt18 / jquery.webfonts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wikimedia/jquery.webfonts

0.0 2.0 0.0 538 KB

jQuery based Webfonts library

License: Other

JavaScript 97.73% HTML 2.27%

jquery.webfonts's Introduction

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

jquery.webfonts's People

Contributors

amire80 avatar atdt avatar kartikm avatar krinkle avatar nikerabbit avatar santhoshtr avatar siebrand avatar thiemowmde avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.