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.
12 lines
529 B
12 lines
529 B
import createIconSet from "./createIconSet";
|
|
export default function (config, expoFontName, expoAssetId) {
|
|
const glyphMap = {};
|
|
config.icons.forEach(icon => {
|
|
icon.properties.name.split(/\s*,\s*/g).forEach(name => {
|
|
glyphMap[name] = icon.properties.code;
|
|
});
|
|
});
|
|
const fontFamily = expoFontName || config.preferences.fontPref.metadata.fontFamily;
|
|
return createIconSet(glyphMap, fontFamily, expoAssetId || `${fontFamily}.ttf`);
|
|
}
|
|
//# sourceMappingURL=createIconSetFromIcoMoon.js.map
|