Skip to content

Commit

Permalink
Added font awesome support.
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed May 16, 2015
1 parent 75ca433 commit fd3f169
Show file tree
Hide file tree
Showing 5 changed files with 614 additions and 0 deletions.
8 changes: 8 additions & 0 deletions FontAwesome.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

var createIconSet = require('./').createIconSet;
var glyphMap = require('./glyph-maps/FontAwesome.json');

var FontAwesome = createIconSet(glyphMap, 'FontAwesome');

module.exports = FontAwesome;
8 changes: 8 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,11 @@ function generateIconSet(componentName, cssFiles, fontFile, fontFamily, selector
var component = template.replace(/\{componentName\}/g, componentName).replace(/\{fontFamily\}/g, fontFamily);
fs.writeFileSync(path.join(__dirname, componentName + '.js'), component);
};

generateIconSet(
'FontAwesome',
'node_modules/font-awesome/css/font-awesome.css',
'node_modules/font-awesome/fonts/fontawesome-webfont.ttf',
'FontAwesome',
'\.fa-([a-z0-9-]+):before'
);
Binary file added fonts/FontAwesome.ttf
Binary file not shown.
Loading

0 comments on commit fd3f169

Please sign in to comment.