1 | import createIconSet from './create-icon-set';
|
2 |
|
3 | export default function createIconSetFromFontello(
|
4 | config,
|
5 | fontFamilyArg,
|
6 | fontFile
|
7 | ) {
|
8 | const glyphMap = {};
|
9 | config.glyphs.forEach(glyph => {
|
10 | glyphMap[glyph.css] = glyph.code;
|
11 | });
|
12 |
|
13 | const fontFamily = fontFamilyArg || config.name || 'fontello';
|
14 |
|
15 | return createIconSet(glyphMap, fontFamily, fontFile || `${fontFamily}.ttf`);
|
16 | }
|