17 lines
391 B
JavaScript
17 lines
391 B
JavaScript
import createIconSet from './create-icon-set';
|
|
|
|
export default function createIconSetFromFontello(
|
|
config,
|
|
fontFamilyArg,
|
|
fontFile
|
|
) {
|
|
const glyphMap = {};
|
|
config.glyphs.forEach(glyph => {
|
|
glyphMap[glyph.css] = glyph.code;
|
|
});
|
|
|
|
const fontFamily = fontFamilyArg || config.name || 'fontello';
|
|
|
|
return createIconSet(glyphMap, fontFamily, fontFile || `${fontFamily}.ttf`);
|
|
}
|