You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
391 B

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`);
}