a flask extension to serve and list complex script fonts
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example
flaskext
.gitignore
.gitmodules
LICENSE
README.md
setup.py

README.md

#Flask-Webfonts

##Usage

the extension currently registers the following paths on the app you can select the font_folder by passing fontfolder keyword argument you can also pass in api_url_prefix argument as a url prefix, defaults to /webfonts

###Url Rules

<Rule '/webfonts/list?language=Malayalam&language=Tamil' (HEAD, OPTIONS, GET) -> bp_api_webfonts.webfonts_list>


 <Rule '/webfonts/text?language=Malayalam' (HEAD, OPTIONS, GET) -> bp_api_webfonts.webfonts_text>,


 <Rule '/webfonts?font=Meera' (HEAD, OPTIONS, GET) -> bp_api_webfonts.webfonts_api>,
serves the css files from here

 <Rule '/webfonts/fonts/<filename>' (HEAD, OPTIONS, GET) -> bp_api_webfonts.static>,
 serves the font files from this location


 <Rule '/static/webfonts.html' (HEAD, OPTIONS, GET) -> static>
A temporary interface decoupled from the extension