Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

mdtanrikulu/ngFont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

ngFont

ngFont is an AngularJS module that fetching and using Google Fonts quickly. It requires angular-load.

Current Version 0.0.1

Demo

Getting Started

Install using bower:

bower install --save ng-font


Add js file to main html page

 <script src="path/of/file/ngFont.js"></script>


Call module to app:

 angular.module('myApp', ['ngFont']);


Call as "ng-font" in the area you want to use, and enter the name of the font you want to use from Google Fonts:

 <span ng-font font="Lobster"> Lorem ipsum dolor sit amet </span>

Additional Options

 size="30pt" 
 bold
 italic
 oblique
 shadow="2px 2px 2px #ccc" 
 opacity="0.5" 
 left
 center
 right
 
 <div ng-font font="Lobster" size="90%" italic right> Lorem ipsum dolor </div>

About

AngularJS Font Fetching Module from Google Fonts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published